Skip to content

Commit

Permalink
added login/logout links
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlinux committed May 3, 2024
1 parent da6a7ba commit abbaaf7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion blog/templates/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,16 @@

{% block page_body %}
{{super()}}
{% endblock %}
{% endblock %}

{% block menu_links %}
<ul class="nav navbar-nav navbar-right">
{{super()}}
{% if current_user.is_authenticated %}
<li><a href="{{ url_for('userb.logout') }}">({{ current_user.name }}) logout</a></li>
{% else %}
<li><a href="{{ url_for('userb.login') }}">login</a></li>
{% endif %}
</ul>
{% endblock %}

0 comments on commit abbaaf7

Please sign in to comment.