{% extends "base.html" %} {% block title %}{{ _('User') }} #{{ user.id }}: {{ user.get_name() }} — {{ service_name }}{% endblock %} {% block content %}

{{ _('User Profile') }}

{{ _('ID') }}
#{{ user.id }}
{{ _('Name') }}
{% if user.name is not none %} {{ user.name }} {% else %} — {% endif %} {% if user.is_admin %} {{ _('administrator') }}{% endif %} {% if user.type.name.lower() == 'other' %}{{ _('bot') }}{% endif %} {% if user.is_readonly %} {{ _('read only') }}{% endif %} {% if user.is_hidden %} {{ _('hidden') }}{% endif %} {% if not user.is_active %} {{ _('deactivated') }}{% endif %}
{% if user.component is not none %}
{{ _('Other Databases') }}
{% if user.component.address is not none %} {{ _('User #%(user_id)s (%(component_name)s)', user_url=(user.component.address|unify_url) ~ relative_url_for('.user_profile', user_id=user.fed_id), user_id=user.fed_id, component_url=user.component.address, component_name=user.component.get_name()) }} {% else %} {{ _('User #%(user_id)s (%(component_name)s)', user_id=user.id, component_name=user.component.get_name()) }} {% endif %}
{% endif %} {% if user.eln_import_id is not none %}
{{ _('Imported from') }}
{{ _('.eln file') }} #{{ user.eln_import_id }}
{% endif %}
ORCID iD
{% if user.orcid %}
ORCID iD iconhttps://orcid.org/{{ user.orcid }}
{% else %} — {% endif %}
{{ _('Affiliation') }}
{% if user.affiliation %} {{ user.affiliation }} {% else %} — {% endif %}
{{ _('Role') }}
{% if user.role %} {{ user.role }} {% else %} — {% endif %}
{% for extra_field_id, extra_field in EXTRA_USER_FIELDS.items() %}
{{ (extra_field.name | get_translated_text) or extra_field_id }}
{{ (user.extra_fields or {}).get(extra_field_id, '—') | safe }}
{% endfor %}
{{ _('Basic Groups') }}
{% if basic_groups %} {% else %} — {% endif %}
{{ _('Project Groups') }}
{% if project_groups %} {% else %} — {% endif %}
{% if instruments and not config['DISABLE_INSTRUMENTS'] %}
{{ _('Instruments') }}
{% endif %} {% if config['SHOW_LAST_PROFILE_UPDATE'] or last_modifying_user %}
{{ _('Last Update') }}
{% if user.last_modified and user.last_modified_by_id %} {{ user.last_modified | babel_format_datetime }} {% elif not last_modifying_user %} — {% endif %} {% if last_modifying_user %} {{ _('by %(user_name)s', user_url=url_for('.user_profile', user_id=last_modifying_user.id), user_name=last_modifying_user.get_name()) }} {% endif %}
{% endif %} {% if show_federated_identities %}
{{ _('Federated Identities') }}
{% if fed_identity_descriptions_sampledb %} {% endif %} {% if fed_identity_descriptions_eln %} {% endif %} {% if not fed_identity_descriptions_sampledb and not fed_identity_descriptions_eln %} — {% endif %}
{% endif %} {% if show_local_federated_identity %}
{{ _('Federated Identity with') }}
{% if local_federated_identity_user %} {{ local_federated_identity_user.name }} #{{ local_federated_identity_user.id }} {% else %} — {% endif %}
{% endif %}
{{ _('View Objects') }}
{% if user_read_only_form %}
{{ user_read_only_form.hidden_tag() }}
{% endif %} {% if user_hidden_form %}
{{ user_hidden_form.hidden_tag() }}
{% endif %} {% if user_active_form %}
{{ user_hidden_form.hidden_tag() }}
{% endif %} {% if user_profile_form and user.id != current_user.id %} {% elif user.id == current_user.id %} {{ _('Edit') }} {% endif %} {% endblock %} {% block template_values %} {% do set_template_value("show_edit_form", user_profile_form and request.form.get(user_profile_form.action.name) == 'edit_profile') %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}