Skip to content

Commit

Permalink
[#3012] User read template uses is_authorized property
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 9, 2012
1 parent 636c786 commit beea931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/templates/user/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ <h2 class="hide-heading">{{ _('Datasets') }}</h2>
<section class="module-content">
<div class="avatar">{{ h.linked_gravatar(user.email_hash, 180) }}</div>
<h1 class="heading">{{ user.fullname or _('No full name provided') }}</h1>
{% if g.authorized_users_only and not user.is_authorized %}
<p class="label label-info">{% trans %}Awaiting Authorization{% endtrans %}</p>
{% endif %}
{% if c.about_formatted %}
{{ c.about_formatted }}
{% else %}
Expand Down Expand Up @@ -107,7 +110,7 @@ <h1 class="heading">{{ user.fullname or _('No full name provided') }}</h1>
<dt>{{ _('Member Since') }}</dt>
<dd>{{ h.render_datetime(user.created) }}</dd>
</dl>
{% if c.is_myself and (not g.authorized_users_only or user.authorized) %}
{% if c.is_myself and (not g.authorized_users_only or user.is_authorized) %}
<dl>
<dt class="key">{{ _('API Key') }} <span class="label" title="{{ _('This means only you can see this') }}">{{ _('Private') }}</span></dt>
<dd class="value"><code>{{ user.apikey }}</code></dd>
Expand Down

0 comments on commit beea931

Please sign in to comment.