aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-07-18 18:53:20 +0300
committerPriit Laes <plaes@plaes.org>2010-07-18 18:53:20 +0300
commitbff8d4fb2c474c510c8937fe0b7b8b8d80a47cb9 (patch)
treef732701995fdc1e9e2e1d96048c09b02fc0444e1
parentImplement registration token generation and email sending (diff)
downloadgsoc2010-grumpy-bff8d4fb2c474c510c8937fe0b7b8b8d80a47cb9.tar.gz
gsoc2010-grumpy-bff8d4fb2c474c510c8937fe0b7b8b8d80a47cb9.tar.bz2
gsoc2010-grumpy-bff8d4fb2c474c510c8937fe0b7b8b8d80a47cb9.zip
Display warning when user hasn't yet confirmed his account
-rw-r--r--grumpy/templates/layout.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/grumpy/templates/layout.html b/grumpy/templates/layout.html
index e3d8ff2..273a5d3 100644
--- a/grumpy/templates/layout.html
+++ b/grumpy/templates/layout.html
@@ -2,6 +2,14 @@
<head>
<title>{% block title %}Welcome{% endblock %} | Grumpy</title>
</head>
+{% if g.user and 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 %}
<div class=menu>
<ul>
{% if g.user %}