diff --git a/ckanext/switzerland/templates/user/read_base.html b/ckanext/switzerland/templates/user/read_base.html index 6ba85594..a8a43043 100644 --- a/ckanext/switzerland/templates/user/read_base.html +++ b/ckanext/switzerland/templates/user/read_base.html @@ -7,3 +7,42 @@ {{ h.build_nav_icon('user.activity', _('Activity Stream'), id=user.name) }} {% endif %} {% endblock %} + +{% block user_info %} +{% if h.user_locked_out(user.name) %} + {% set login_status = 'locked out' %} +{% else %} + {% set login_status = 'login enabled' %} +{% endif %} +
+
+ {% 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') }}
+
{{ user.name }}
+ {% endif %} +
+ {% if is_myself %} +
+
{{ _('Email') }} {{ _('Private') }}
+
{{ user.email }}
+
+ {% endif %} +
+
{{ _('Member Since') }}
+
{{ h.render_datetime(user.created) }}
+
+
+
{{ _('State') }}
+
{{ _(user.state) }}, {{ _(login_status) }}
+
+ {% if is_myself %} +
+
{{ _('API Key') }} {{ _('Private') }}
+
{{ user.apikey }}
+
+ {% endif %} +
+{% endblock %}