aboutsummaryrefslogtreecommitdiff
path: root/app/templates/macros.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2025-07-25 16:06:20 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2025-07-25 16:06:20 +0200
commit63e1b52e1b76e136e6534949980d85ffe413f0c9 (patch)
treea4f8e5745ad11be7e2f79740f3c590f4a67224a4 /app/templates/macros.j2
parentc041e74af8c69e8fb0680558e23dd7be542afcf6 (diff)
Working mobile and desktop version
Diffstat (limited to 'app/templates/macros.j2')
-rw-r--r--app/templates/macros.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/macros.j2 b/app/templates/macros.j2
index 17a2940..e82b910 100644
--- a/app/templates/macros.j2
+++ b/app/templates/macros.j2
@@ -31,7 +31,7 @@
{%- endmacro %}
-{% macro navbar(url_for) -%}
+{% macro navbar(url_for, login_status) -%}
<nav>
<ul>
<li><strong>Match Up!</strong></li>
@@ -39,7 +39,7 @@
<ul>
<li><a href="/">Games</a></li>
<li><a href="/players">Players</a></li>
- <li><a href="/login/">Admin</a></li>
+ {% if login_status %}<li><a href="/logout/">Logout</a></li>{% else %}<li><a href="/login/">Login</a></li>{% endif %}
</ul>
</nav>
{%- endmacro %} \ No newline at end of file