{% extends "page.html" %} {% set user = c.user_dict %} {% block subtitle %}{{ user.display_name }}{% endblock %} {% block add_action_content %} {% if h.check_access('user_update', user) %}
  • {% link_for _('Edit'), controller='user', action='edit', id=user.name, class_='btn', icon='wrench' %}
  • {% endif %} {% if c.is_myself == false %}
  • {{ h.follow_button('user', user.id) }}
  • {% endif %} {% if h.check_access('package_create') %} {% link_for _('Add Dataset'), controller='package', action='new', class_='btn btn-primary', icon='plus-sign-alt' %} {% endif %} {% endblock %} {% block breadcrumb_content %}
  • {% link_for _('Users'), controller='user', action='index' %}
  • {% link_for user.display_name|truncate(35), controller='user', action='read', id=user.name %}
  • {% endblock %} {% block primary_content %}
    {% block primary_content_inner %}

    {{ _('Datasets') }}

    {% if user.datasets %} {% snippet 'snippets/package_list.html', packages=user.datasets %} {% else %} {% if c.is_myself %}

    {{ _("You haven\'t created any datasets.") }} {% link_for _('Create one now?'), controller='package', action='new' %}

    {% else %}

    {{ _("User hasn\'t created any datasets.") }}

    {% endif %} {% endif %} {% endblock %}
    {% endblock %} {% block secondary_content %}
    {{ h.linked_gravatar(user.email_hash, 180) }}

    {{ user.fullname or _('No full name provided') }}

    {% 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 %}
    {{ _('Followers') }}
    {{ user.num_followers }}
    {{ _('Datasets') }}
    {{ user.number_administered_packages }}
    {{ _('Edits') }}
    {{ user.number_of_edits }}
    {% 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 %} {% if c.is_myself %}
    {{ _('Username') }}
    {{ user.name }}
    {% endif %} {% endif %}
    {{ _('Organization') }}
    {{ user.organization or _('Undefined')}}
    {% if c.is_myself %}
    {{ _('Telephone') }} {{ _('Private') }}
    {{ user.telephone or _('Undefined')}}
    {{ _('Mobile') }} {{ _('Private') }}
    {{ user.mobile or _('Undefined')}}
    {{ _('Email') }} {{ _('Private') }}
    {{ user.email }}
    {% endif %}
    {{ _('Member Since') }}
    {{ h.render_datetime(user.created) }}
    {% if c.is_myself %}
    {{ _('API Key') }} {{ _('Private') }}
    {{ user.apikey }}
    {% endif %}
    {% endblock %}