mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-26 02:38:31 +02:00
refactor: extendable templates
refactor: simplification refactor: simplification
This commit is contained in:
24
html-router/templates/scratchpad/_layout.html
Normal file
24
html-router/templates/scratchpad/_layout.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'body_base.html' %}
|
||||
|
||||
{% block title %}Minne - Scratchpad{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<main id="main_section" class="flex justify-center grow mt-2 sm:mt-4 gap-6 mb-10 w-full">
|
||||
<div class="container">
|
||||
{% block scratchpad_header %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scratchpad_content %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scratchpad_archived %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{% if new_scratchpad %}
|
||||
<div hx-swap-oob="innerHTML:#modal">
|
||||
<div hx-get="/scratchpad/{{ new_scratchpad.id }}/modal" hx-trigger="load" hx-target="#modal" hx-swap="innerHTML"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user