Make "needs verification" link only appear if you need verification really.
This commit is contained in:
parent
996b3bf7c9
commit
4476adcdb0
@ -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 -->
|
||||
|
||||
{# 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">
|
||||
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') }}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user