Skip to content

Commit

Permalink
[#2375] Display open id a little nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jul 5, 2012
1 parent ec7df1b commit dd4b328
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ckan/templates/user/read.html
Expand Up @@ -12,7 +12,9 @@
{% endblock %}

{% block actions_content %}
<li>{% link_for _('Edit'), controller='user', action='edit', id=user.name, class_='btn', icon='cog' %}</li>
{% if h.check_access('user_update', user) %}
<li>{% link_for _('Edit'), controller='user', action='edit', id=user.name, class_='btn', icon='cog' %}</li>
{% endif %}
{% endblock %}

{% block primary_content %}
Expand All @@ -37,8 +39,13 @@ <h1 class="heading">{{ user.fullname or _('No full name provided') }}</h1>
</header>
<ul class="listing unstyled">
<li>
<b class="key">{{ _('Username') }}:</b>
<span class="value">{{ user.name }}</span>
{% if user.name.startswith('http://') or user.name.startswith('https://') %}
<b class="key">{{ _('Open ID') }}:</b>
{{ user.name|urlize(25) }}{# Be great if this just showed the domain #}
{% else %}
<b class="key">{{ _('Username') }}:</b>
<span class="value">{{ user.name }}</span>
{% endif %}
</li>
{% if c.is_myself %}
<li>
Expand Down

0 comments on commit dd4b328

Please sign in to comment.