diff options
Diffstat (limited to 'grumpy/templates/_userinfo.html')
-rw-r--r-- | grumpy/templates/_userinfo.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/grumpy/templates/_userinfo.html b/grumpy/templates/_userinfo.html index 7f5ac0e..28d391e 100644 --- a/grumpy/templates/_userinfo.html +++ b/grumpy/templates/_userinfo.html @@ -1,9 +1,13 @@ -{% macro show_box(g) -%} +{% macro show_usernav(g) -%} +<div id="usernav"> +<ul class="usernav"> {% if g.user -%} -<ul> <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> {% if g.user.regtoken -%} <span class="warning"> @@ -12,5 +16,5 @@ Until the account has been confirmed, You won't receive notifications and cannot add packages to your watch list. </span> {% endif -%}{# g.user.regtoken #} -{% endif -%}{# g.user #} +</div> {% endmacro -%} |