oshipka/bootstrap/webapp/templates/navigation.html
Daniel Tsvetkov 882cfb2a98 enable login
2020-04-15 21:02:26 +02:00

9 lines
325 B
HTML

<a href="{{ url_for('home') }}">Home</a> |
<div class="pull-right">
{% if current_user.is_authenticated %}
<a href="#">{{ current_user.email }}</a> |
<a href="{{ url_for('security.logout') }}">Logout</a> |
{% else %}
<a href="{{ url_for('security.login') }}">Login</a> |
{% endif %}
</div>