summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-11-03 09:59:15 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-11-17 17:36:15 +0100
commite1908c25437f1d5eb0b43416073c861f4dbbc230 (patch)
tree430b913de14e4f8f952fc5fce4ee7bd12da50604
parent42bf42f5801cb633e7c9817e5b5d781ee622ea36 (diff)
Show servers section only to administrators
-rw-r--r--ogcp/templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 9d53d5c..f11ad5f 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -36,10 +36,10 @@
<li class="nav-item {% block nav_images%}{% endblock %}">
<a class="nav-link" href="{{ url_for('images') }}">{{ _('Images') }}</a>
</li>
+ {% if current_user.admin %}
<li class="nav-item {% block nav_servers %}{% endblock %}">
<a class="nav-link" href="{{ url_for('manage_servers') }}">{{ _('Servers') }}</a>
</li>
- {% if current_user.admin %}
<li class="nav-item {% block nav_users %}{% endblock %}">
<a class="nav-link" href="{{ url_for('users') }}">{{ _('Users') }}</a>
</li>