summaryrefslogtreecommitdiff
path: root/views/base.twig
diff options
context:
space:
mode:
Diffstat (limited to 'views/base.twig')
-rw-r--r--views/base.twig32
1 files changed, 0 insertions, 32 deletions
diff --git a/views/base.twig b/views/base.twig
deleted file mode 100644
index 15ddafd..0000000
--- a/views/base.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends 'root.twig' %}
-
-{% block body %}
-<div class="wrap">
- <header>
- <nav>
- <a href="/villages">Overview</a>
- <a href="/logout">Logout</a>
- </nav>
- <span>Logged in as {{ session.user.username }}</span>
- </header>
-
- <main>
- {% block main %}{% endblock %}
- </main>
-
- <footer></footer>
-
- <div class="global-timer"></div>
- <script>
- const timer = document.querySelectorAll('.global-timer');
- function setTime () {
- const now = new Date();
- for (const t of timer) {
- t.innerHTML = now;
- }
- }
- setTime();
- setInterval(setTime, 1000);
- </script>
-</div>
-{% endblock %}