Skip to content

Commit

Permalink
[#3012] Show user menu for unauthorized users
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 9, 2012
1 parent 139276c commit ff0d706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/templates/header.html
Expand Up @@ -15,7 +15,7 @@ <h1>
{% endif %}
</hgroup>
<div class="content">
{% if c.userobj %}
{% if c.userobj or c.unauthorized_user %}
<div class="account section avatar authed dropdown" data-me="{{ c.userobj.id }}">
<a href="#" class="image dropdown-toggle" data-toggle="dropdown">
{{ h.gravatar((c.userobj.email_hash if c and c.userobj else ''),size=25) }}
Expand All @@ -28,13 +28,13 @@ <h1>
</a>
</li>
<li>
<a href="{{ h.url_for(controller='user', action='read', id=c.userobj.name) }}">
<a href="{{ h.url_for(controller='user', action='read', id=c.user) }}">
<i class="icon-user"></i>
{{ _('My Profile') }}
</a>
</li>
<li>
<a href="{{ h.url_for(controller='user', action='edit', id=c.userobj.name) }}">
<a href="{{ h.url_for(controller='user', action='edit', id=c.user) }}">
<i class="icon-wrench"></i>
{{ _('Edit Profile') }}
</a>
Expand Down

0 comments on commit ff0d706

Please sign in to comment.