summaryrefslogtreecommitdiff
path: root/app/templates/index.j2
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/index.j2')
-rw-r--r--app/templates/index.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/app/templates/index.j2 b/app/templates/index.j2
new file mode 100644
index 0000000..656b187
--- /dev/null
+++ b/app/templates/index.j2
@@ -0,0 +1,22 @@
+{% from "macros.j2" import header, footer, navbar %}
+<!doctype html>
+<html lang="en">
+ {{ header(url_for) }}
+ <body>
+ <section class="section">
+ {{ navbar(url_for) }}
+ <div hx-post="/clear" hx-swap="outerHTML" hx-trigger="load"></div>
+ <div hx-get="/control" hx-swap="outerHTML" hx-trigger="load"></div>
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <ul>
+ {% for message in messages %}
+ <li>{{ message }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% endwith %}
+ {{ footer() }}
+ </section>
+ </body>
+</html>