{% 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 %} {% set client = clients[consent.client] %}
{% if client.logo_uri %} {% endif %} {% if client.uri %} {{ client.client_name }} {% else %}
{{ client.client_name }}
{% endif %}
{% trans %}From:{% endtrans %} {{ consent.issue_date.strftime("%d/%m/%Y %H:%M:%S") }}
{% if consent.revokation_date %}
{% trans %}Revoked:{% endtrans %} {{ consent.revokation_date.strftime("%d/%m/%Y %H:%M:%S") }}
{% endif %}

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

{% 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 %}
{% trans %}Remove access{% endtrans %}
{% endfor %}
{% else %}

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

{% endif %}
{% endblock %}