Skip to content

Commit

Permalink
[#3012] Show user gravatar when logged in even if not authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 12, 2012
1 parent beea931 commit bdf5205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/templates/header.html
Expand Up @@ -16,9 +16,10 @@ <h1>
</hgroup>
<div class="content">
{% if c.userobj or c.unauthorized_userobj %}
{% set userobj = c.userobj or c.unauthorized_userobj %}
<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) }}
{{ h.gravatar((userobj.email_hash if c and userobj else ''),size=25) }}
<i class="icon-caret-down"></i>
</a>
<ul class="dropdown-menu pull-right" role="menu">
Expand Down

0 comments on commit bdf5205

Please sign in to comment.