[Bugfix] Don’t display the “Logged in as” text if no one is logged in

This commit is contained in:
Gergely Polonkai 2018-06-29 13:59:58 +02:00
parent 495df6d709
commit 57bc0b2a77
1 changed files with 2 additions and 0 deletions

View File

@ -17,7 +17,9 @@
<header>
<h1>Calendar.social</h1>
<nav class="menu">
{% if current_user.is_authenticated %}
{{ _('Logged in as %(username)s', username=current_user.username) }}
{% endif %}
<ul>
{% if not current_user.is_authenticated %}
<li><a href="{{ url_for('security.login') }}">{% trans %}Login{% endtrans %}</a></li>