forked from gergely/calendar-social
[Bugfix] Don’t display the “Logged in as” text if no one is logged in
This commit is contained in:
parent
495df6d709
commit
57bc0b2a77
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user