{% extends 'users/base.html' %} {% from 'forms/_form.html' import form_header, form_rows, form_footer %} {% block user_content %} {% if indico_config.LocalIdentities %}
{% trans %}Local Account{% endtrans %}
{% if not user.local_identity %} {% else %} {{ form_header(form, orientation='vertical', classes='no-block-padding') }} {{ form_rows(form) }} {% call form_footer(form) %} {% endcall %} {% endif %} {% if user.secondary_local_identities %}

  • {% trans count = user.secondary_local_identities|count -%} You have another local account that has been used in the past. {%- pluralize -%} You have {{ count }} other local accounts that have been used in the past. {%- endtrans -%} {% trans %}Show{% endtrans %}
  • {% for identity in user.secondary_local_identities %}
  • {{ identity.identifier }} {% trans %}Last login:{% endtrans %} {% if identity.last_login_dt %} {{ identity.last_login_dt | format_datetime('short') }} {% else %} {% trans %}Never{% endtrans %} {% endif %}
  • {% endfor %}
{% endif %}
{% endif %}
{%- trans %}External Accounts{% endtrans -%}

{% trans %}External accounts linked with your Indico profile.{% endtrans %}

    {% if user.external_identities %} {% for identity in user.external_identities | sort(attribute='safe_last_login_dt', reverse=True) %}
  • {{ provider_titles[identity.provider] }} ({{ identity.identifier }}) {% trans %}Last login:{% endtrans %} {% if identity.last_login_dt %} {{ identity.last_login_dt | format_datetime('short') }} {% else %} {% trans %}Never{% endtrans %} {% endif %} {% if identity.id == session.login_identity %} {% else %} {% endif %}
  • {% endfor %} {% else %}
{% endif %}
{% endblock %}