{% set user = user_dict if not user else user %} {% set orgs_available = h.organizations_available(permission='manage_group', include_dataset_count=True, include_member_count=True, user=user['name']) %} {% set groups_available = h.groups_available(am_member=True, include_dataset_count=True, include_member_count=True, user=user['name']) %}
{% 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 %} {% set num_followers = h.follow_count('user', user.id) %}
{{ _('Followers') }}
{{ h.SI_number_span(num_followers) }}
{{ h.humanize_entity_type('package', dataset_type, 'facet label') or _('Datasets') }}
{{ h.SI_number_span(user.number_created_packages) }}
{{ h.humanize_entity_type('organization', org_type, 'facet label') or _('Organizations') }}
{{ orgs_available | count }}
{{ h.humanize_entity_type('group', group_type, 'facet label') or _('Groups') }}
{{ groups_available | count }}
{% endblock %} {% if is_myself == false %} {% block user_follow %} {% if current_user.is_authenticated %} {% if error_message %}
{{ error_message }}
{% endif %} {% if am_following %} Unfollow {% else %} Follow {% endif %} {% endif %} {% 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) }}
{% endblock %} {% endblock %}