summaryrefslogtreecommitdiff
path: root/views/http/base.twig
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-01-15 15:50:43 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-01-15 15:50:43 +0100
commitd58f61770463aab2c71464c11f902f0074b49b62 (patch)
tree97f55098caa342c1146f4e0bdc9f299affb62739 /views/http/base.twig
parent2d0da0b920035c90d56db5dbec6d62f5b50ba0c2 (diff)
http catch-upHEADmain
Diffstat (limited to 'views/http/base.twig')
-rw-r--r--views/http/base.twig7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/http/base.twig b/views/http/base.twig
index 15ddafd..bd59207 100644
--- a/views/http/base.twig
+++ b/views/http/base.twig
@@ -5,7 +5,12 @@
<header>
<nav>
<a href="/villages">Overview</a>
- <a href="/logout">Logout</a>
+ {% if session.user %}
+ <a href="/account">Account</a>
+ <a href="/logout">Logout</a>
+ {% else %}
+ <a href="/login">Login</a>
+ {% endif %}
</nav>
<span>Logged in as {{ session.user.username }}</span>
</header>