{% extends theme('base.html') %} {% block style %} {% endblock %} {% block script %} {% endblock %} {% block content %}

{{ _("My consents") }}
{% trans %}Consult and revoke the authorization you gave to websites.{% endtrans %}

{% if consents %}
{% for consent in consents %}
{% if consent.client.logo_uri %} {% endif %} {% if consent.client.client_uri %} {{ consent.client.client_name }} {% else %}
{{ consent.client.client_name }}
{% endif %} {% if consent.issue_date %}
{% trans %}From:{% endtrans %} {{ consent.issue_date.strftime("%d/%m/%Y %H:%M:%S") }}
{% endif %} {% if consent.revokation_date %}
{% trans %}Revoked:{% endtrans %} {{ consent.revokation_date.strftime("%d/%m/%Y %H:%M:%S") }}
{% endif %}

{% if consent.revokation_date %} {% trans %}Had access to:{% endtrans %} {% else %} {% trans %}Has access to:{% endtrans %} {% endif %}

{% for scope in consent.scope %} {% if scope not in ignored_scopes %} {% if scope not in scope_details %}
{{ scope }}
{% else %}
{{ scope_details[scope][1] }}
{% endif %} {% endif %} {% endfor %}
{% if consent.client.policy_uri %} {% endif %} {% if consent.client.tos_uri %} {% endif %} {% if consent.revokation_date %} {% trans %}Restore access{% endtrans %} {% else %} {% trans %}Revoke access{% endtrans %} {% endif %}
{% endfor %}
{% else %}

{% trans %}You did not authorize applications yet.{% endtrans %}

{% endif %} {% if preconsented %}

{{ _("Pre-authorized applications") }}
{% trans %}Those applications automatically have authorizations to access you data.{% endtrans %}

{% for client in preconsented %}
{% if client.logo_uri %} {% endif %} {% if client.client_uri %} {{ client.client_name }} {% else %}
{{ client.client_name }}
{% endif %}

{% trans %}Has access to:{% endtrans %}

{% for scope in client.scope %} {% if scope not in ignored_scopes %} {% if scope not in scope_details %}
{{ scope }}
{% else %}
{{ scope_details[scope][1] }}
{% endif %} {% endif %} {% endfor %}
{% if client.policy_uri %} {% endif %} {% if client.tos_uri %} {% endif %} {% trans %}Revoke access{% endtrans %}
{% endfor %}
{% endif %}
{% endblock %}