From 4b933911bda2619edf55f90ee0be8665a11b0178 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Mon, 16 Mar 2015 17:53:39 +0100 Subject: [PATCH] user name replaced by fullname (#6747) --- .../templates/user/read_base.html | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 ckanext/ozwillo_theme/templates/user/read_base.html diff --git a/ckanext/ozwillo_theme/templates/user/read_base.html b/ckanext/ozwillo_theme/templates/user/read_base.html new file mode 100644 index 0000000..8ad56ca --- /dev/null +++ b/ckanext/ozwillo_theme/templates/user/read_base.html @@ -0,0 +1,105 @@ +{% extends "page.html" %} + +{% set user = c.user_dict %} + +{% block subtitle %}{{ user.display_name }} - {{ _('Users') }}{% endblock %} + +{% block breadcrumb_content %} + {{ h.build_nav('user_index', _('Users')) }} + {{ h.build_nav('user_datasets', user.display_name|truncate(35), id=user.name) }} +{% endblock %} + +{% block content_action %} + {% if h.check_access('user_update', user) %} + {% link_for _('Manage'), controller='user', action='edit', id=user.name, class_='btn', icon='wrench' %} + {% endif %} +{% endblock %} + +{% block content_primary_nav %} + {{ h.build_nav_icon('user_datasets', _('Datasets'), id=user.name) }} + {{ h.build_nav_icon('user_activity_stream', _('Activity Stream'), id=user.name) }} +{% endblock %} + +{% block secondary_content %} +
+
+ {% block secondary_content_inner %} + {% block user_image %} +
{{ h.linked_gravatar(user.email_hash, 190) }}
+ {% endblock %} + {% block user_heading %} +

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

+ {% endblock %} + {% block user_about %} + {% if c.about_formatted %} + {{ c.about_formatted }} + {% else %} +

+ {% if c.is_myself %} + {% trans %}You have not provided a biography.{% endtrans %} + {% else %} + {% trans %}This user has no biography.{% endtrans %} + {% endif %} +

+ {% endif %} + {% endblock %} + {% block user_nums %} +
+
+
{{ _('Followers') }}
+
{{ h.SI_number_span(user.num_followers) }}
+
+
+
{{ _('Datasets') }}
+
{{ h.SI_number_span(user.number_created_packages) }}
+
+
+
{{ _('Edits') }}
+
{{ h.SI_number_span(user.number_of_edits) }}
+
+
+ {% endblock %} + {% if c.is_myself == false %} + {% block user_follow %} + + {% endblock %} + {% endif %} + {% block user_info %} +
+
+ {% if user.name.startswith('http://') or user.name.startswith('https://') %} +
{{ _('Open ID') }}
+
{{ user.name|urlize(25) }}{# Be great if this just showed the domain #}
+ {% else %} +
{{ _('Username') }}
+
{% if user.fullname }}{{ user.fullname }}{% endif %}
+ {% endif %} +
+ {% if c.is_myself %} +
+
{{ _('Email') }} {{ _('Private') }}
+
{{ user.email }}
+
+ {% endif %} +
+
{{ _('Member Since') }}
+
{{ h.render_datetime(user.created) }}
+
+
+
{{ _('State') }}
+
{{ _(user.state) }}
+
+ {% if c.is_myself %} +
+
{{ _('API Key') }} {{ _('Private') }}
+
{{ user.apikey }}
+
+ {% endif %} + {% endblock %} +
+ {% endblock %} +
+
+{% endblock %}