diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-28 21:20:32 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-28 21:20:32 -0500 |
commit | 4476adcdb02d8c36ae87efe1c00ef0972ecff64d (patch) | |
tree | 8058cc397f54ea72d98ed8877ceb02f9c58ea9bb | |
parent | 996b3bf7c98d58ef5059ffe12639809155638734 (diff) | |
download | mediagoblin-4476adcdb02d8c36ae87efe1c00ef0972ecff64d.tar.lz mediagoblin-4476adcdb02d8c36ae87efe1c00ef0972ecff64d.tar.xz mediagoblin-4476adcdb02d8c36ae87efe1c00ef0972ecff64d.zip |
Make "needs verification" link only appear if you need verification really.
-rw-r--r-- | mediagoblin/templates/mediagoblin/base.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 22a691b5..8e3b0724 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -50,10 +50,15 @@ <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', user= request.user['username']) }}"> {{ request.user['username'] }}</a>'s account - <!-- the following link should only appear when verification is needed --> - <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', - user= request.user['username']) }}" class="highlight"> - needs verification!</a> + + {# the following link should only appear when verification is needed #} + {% if request.user.status == "needs_email_verification" %} + <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', + user=request.user['username']) }}" + class="highlight"> + needs verification!</a> + {% endif %} + (<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">logout</a>) {% else %} <a href="{{ request.urlgen('mediagoblin.auth.login') }}"> |