Project

General

Profile

« Previous | Next » 

Revision 8f50958f

Added by Serghei Mihai almost 8 years ago

user name displayed only when fullname unavailable

View differences:

ckanext/ozwillo_theme/templates/user/read_base.html
28 28
      <div class="image">{{ h.linked_gravatar(user.email_hash, 190) }}</div>
29 29
      {% endblock %}
30 30
      {% block user_heading %}
31
      <h1 class="heading">{% if user.fullname %}{{ user.fullname }}{% endif %}</h1>
31
      <h1 class="heading">{% if user.fullname %}{{ user.fullname }}{% else %}{{ user.name }}{% endif %}</h1>
32 32
      {% endblock %}
33 33
      {% block user_about %}
34 34
      {% if c.about_formatted %}
......
74 74
            <dd>{{ user.name|urlize(25) }}{# Be great if this just showed the domain #}</dd>
75 75
          {% else %}
76 76
            <dt>{{ _('Username') }}</dt>
77
            <dd>{% if user.fullname %}{{ user.fullname }}{% endif %}</dd>
77
            <dd>{% if user.fullname %}{{ user.fullname }}{% else %}{{ user.name }}{% endif %}</dd>
78 78
          {% endif %}
79 79
        </dl>
80 80
        {% if c.is_myself %}

Also available in: Unified diff