aboutsummaryrefslogtreecommitdiff
blob: 0eab3458e0849ce3c314f0baec31b413a2314022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{% macro show_usernav(g) -%}
<div id="usernav">
<ul class="usernav">
{% if g.user -%}
<li><a href="{{ url_for('dashboard') }}">{{ g.user.email.split('@')[0] | e }}</a>
<li><a href="{{ url_for('account') }}">Account</a>
<li><a href="{{ url_for('logout') }}">Log out</a>
{% else %}
<li><a href="{{ url_for('login') }}">Login</a></li>
{% endif %}
</ul>
</div>
{% endmacro -%}