aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'grumpy/templates/_userinfo.html')
-rw-r--r--grumpy/templates/_userinfo.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/grumpy/templates/_userinfo.html b/grumpy/templates/_userinfo.html
new file mode 100644
index 0000000..a9827e7
--- /dev/null
+++ b/grumpy/templates/_userinfo.html
@@ -0,0 +1,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 -%}