aboutsummaryrefslogtreecommitdiff
blob: a9827e77d489ccefb2287d60b83598af35b9e81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% macro show_box(g) -%}
{% if g.user -%}
<ul>
<li>{{ g.user.email.split('@')[0] | e }}
<li><a href="{{ url_for('logout') }}">Log out</a>
{% if g.user.regtoken -%}
<span class="warning">
Warning: this user account has not yet been confirmed.<br />
Until the account has been confirmed, You won't receive
notifications and cannot add packages to your watch list.
{# TODO: provide link to "request new token" #}
</span>
{% endif -%}{# g.user.regtoken #}
{% endif -%}{# g.user #}
{% endmacro -%}