{% extends 'hidp/base_post_login.html' %} {% load i18n %} {% block title %}{% translate 'Manage linked trusted services' %}{% endblock %} {% block main %}

{% translate 'Manage your linked trusted services' %}

{% if oidc_error_message %} {% endif %} {% if oidc_linked_providers %}

{% translate 'Linked services' %}

{% blocktrans count linked=oidc_linked_providers|length trimmed %} Your account is currently linked with the following service: {% plural %} Your account is currently linked with the following services: {% endblocktrans %}

{% if can_unlink %} {% include 'hidp/includes/federated/oidc_provider_list.html' with providers=oidc_linked_providers form_method='get' %} {% else %} {% include 'hidp/includes/federated/oidc_provider_list.html' with providers=oidc_linked_providers form_method='get' disabled=True %} {% endif %} {% endif %} {% if not can_unlink %}

{% blocktranslate trimmed %} Unlinking is currently disabled to prevent you from being locked out. {% endblocktranslate %}

{% if oidc_available_providers %}

{% blocktranslate trimmed %} To unlink this service, you must either link another service or set a password for your account. {% endblocktranslate %}

{% else %}

{% blocktranslate trimmed %} To unlink this service, you must set a password for your account. {% endblocktranslate %}

{% endif %} {% endif %} {% if oidc_available_providers %}

{% translate 'Available services' %}

{% include 'hidp/includes/federated/oidc_provider_list.html' with providers=oidc_available_providers %} {% endif %} {% include 'hidp/includes/forms/submit_row.html' with cancel_label=_('Back') cancel_url=back_url %} {% endblock %}