logout only if logged in
This commit is contained in:
parent
a9b2781ae3
commit
6ed4110ce9
|
@ -2,7 +2,9 @@
|
||||||
<li><a href='{{ url_for('create_pit_stop_form') }}'>Create Pitstop</a></li>
|
<li><a href='{{ url_for('create_pit_stop_form') }}'>Create Pitstop</a></li>
|
||||||
<li><a href='{{ url_for('get_statistics') }}'>Statistics</a></li>
|
<li><a href='{{ url_for('get_statistics') }}'>Statistics</a></li>
|
||||||
<li><a href='{{ url_for('get_manual') }}'>Manual</a></li>
|
<li><a href='{{ url_for('get_manual') }}'>Manual</a></li>
|
||||||
|
{% if current_user.email %}
|
||||||
<li><a href='{{ url_for('security.logout') }}'>Logout</a></li>
|
<li><a href='{{ url_for('security.logout') }}'>Logout</a></li>
|
||||||
|
{% endif %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
Loading…
Reference in New Issue