Skip to content

Commit

Permalink
server: ux maintenance flag to web navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bodik committed Aug 7, 2023
1 parent d6e02c0 commit d5d8e9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sner/server/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@

<ul class="navbar-nav">
{% if config['DEBUG'] %}
<li><span class="nav-link text-warning">debug enabled</span></li>
<li><span class="nav-link text-warning">debug</span></li>
{% endif %}
{% if config['SNER_MAINTENANCE'] %}
<li><span class="nav-link text-warning">maintenance</span></li>
{% endif %}
{% if not current_user.is_authenticated %}
<li class="nav-item"><a class="nav-link" href="{{ url_for('auth.login_route') }}">Login</a></li>
Expand Down

0 comments on commit d5d8e9c

Please sign in to comment.