{% extends "page.html" %} {% set user = user_dict %} {% set dataset_type = h.default_package_type() %} {% block subtitle %}{{ user.display_name }} {{ g.template_title_delimiter }} {{ _('Users') }}{% endblock %} {% block breadcrumb_content %} {{ h.build_nav('user.index', _('Users')) }} {{ h.build_nav('user.read', user.display_name|truncate(35), id=user.name) }} {% endblock %} {% block content_action %} {% if h.check_access('user_update', user) %} {% link_for _('Manage'), named_route='user.edit', id=user.name, class_='btn btn-default', icon='wrench' %} {% endif %} {% endblock %} {% block content_primary_nav %} {{ h.build_nav_icon('user.read', h.humanize_entity_type('package', dataset_type, 'content tab') or _('Datasets'), id=user.name, icon='sitemap') }} {% if h.check_access('api_token_list', {'user': user['name']}) %} {{ h.build_nav_icon('user.api_tokens', _('API Tokens'), id=user.name, icon='key') }} {% endif %} {% endblock %} {% block secondary_content %}
{% block secondary_content_inner %} {% block user_image %}
{{ h.user_image(user.id, size=270) }}
{% endblock %} {% block user_heading %}

{{ user.display_name }}

{% endblock %} {% block user_about %} {% if about_formatted %} {{ about_formatted }} {% else %}

{% if 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) }}
{{ h.humanize_entity_type('package', dataset_type, 'facet label') or _('Datasets') }}
{{ h.SI_number_span(user.number_created_packages) }}
{% endblock %} {% if 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') }}
{{ user.name }}
{% endif %}
{% if is_myself %}
{{ _('Email') }} {{ _('Private') }}
{{ user.email }}
{% endif %}
{{ _('Member Since') }}
{{ h.render_datetime(user.created) }}
{% if is_sysadmin %}
{{_('Last Active') }}
{{ h.time_ago_from_timestamp(user.last_active) }}
{% endif %}
{{ _('State') }}
{{ _(user.state) }}
{% if is_myself %}
{{ _('API Key') }} {{ _('Private') }}
{{ user.apikey }}
{% endif %}
{% endblock %} {% endblock %}
{% endblock %}