From 8f50958f5599318019ea1b8eb2a2d691e3c0910d Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Tue, 17 Mar 2015 22:37:33 +0100 Subject: [PATCH] user name displayed only when fullname unavailable --- ckanext/ozwillo_theme/templates/user/read_base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/ozwillo_theme/templates/user/read_base.html b/ckanext/ozwillo_theme/templates/user/read_base.html index ee63518..c6b6218 100644 --- a/ckanext/ozwillo_theme/templates/user/read_base.html +++ b/ckanext/ozwillo_theme/templates/user/read_base.html @@ -28,7 +28,7 @@
{{ h.linked_gravatar(user.email_hash, 190) }}
{% endblock %} {% block user_heading %} -

{% if user.fullname %}{{ user.fullname }}{% endif %}

+

{% if user.fullname %}{{ user.fullname }}{% else %}{{ user.name }}{% endif %}

{% endblock %} {% block user_about %} {% if c.about_formatted %} @@ -74,7 +74,7 @@
{{ user.name|urlize(25) }}{# Be great if this just showed the domain #}
{% else %}
{{ _('Username') }}
-
{% if user.fullname %}{{ user.fullname }}{% endif %}
+
{% if user.fullname %}{{ user.fullname }}{% else %}{{ user.name }}{% endif %}
{% endif %} {% if c.is_myself %}