[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

View File

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