diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-15 15:50:43 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-15 15:50:43 +0100 |
commit | d58f61770463aab2c71464c11f902f0074b49b62 (patch) | |
tree | 97f55098caa342c1146f4e0bdc9f299affb62739 /views/http/base.twig | |
parent | 2d0da0b920035c90d56db5dbec6d62f5b50ba0c2 (diff) |
Diffstat (limited to 'views/http/base.twig')
-rw-r--r-- | views/http/base.twig | 7 |
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> |