Display Log in on button only if current_user.is_anonymous

This commit is contained in:
2017-11-07 12:55:51 +01:00
parent 470fdf89f4
commit 08b388f363

View File

@@ -26,7 +26,11 @@ li
| {% block navigation_user %}
li.nav-item-sign-in
a.navbar-item(href="{{ url_for('users.login') }}")
| {% if current_user.is_anonymous %}
| Log in and Explore
| {% else %}
| Explore
| {% endif %}
| {% endblock navigation_user %}