aboutsummaryrefslogtreecommitdiff
path: root/templates/navbar.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/navbar.qtpl')
-rw-r--r--templates/navbar.qtpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl
index e24edd8..c222171 100644
--- a/templates/navbar.qtpl
+++ b/templates/navbar.qtpl
@@ -30,11 +30,13 @@ const (
<a class="nav-link{%= insertIfEqual(s, Git) %}" href="/">git</a>
</div>
<div class="navbar-nav ms-auto">
+ {% if !IsAuthenticationDisabled(ctx) %}
{% if IsLoggedIn(ctx) %}
<a class="nav-link{%= insertIfEqual(s, Login) %}" href="/logout/">logout</a>
{% else %}
<a class="nav-link{%= insertIfEqual(s, Login) %}" href="/login/">login</a>
{% endif %}
+ {% endif %}
{% comment %}
Add this back once needed
<a class="nav-link{%= insertIfEqual(s, List) %}" href="/list/">list</a>