{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2020 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends config.OAUTH2SERVER_COVER_TEMPLATE %} {%- import "invenio_oauth2server/settings/helpers.html" as helpers with context %} {% block page_body %}
{{ _('Authorize application') }}

{{ _('Authorize application') }}

{{ _("Application '%(client_name)s' by '%(client_user)s' wants permission to access your '%(current_user)s' account.", client_name=client.name, client_user=client.user.nickname or client.user.email, current_user=current_user.nickname or current_user.email, ) }}

{{ _('Review permissions') }}

{%- for group in scopes|groupby('group') %} {%- if loop.first %}
{% endif %}
{{ group.grouper }}
{% for scope in group.list %}
{{ scope.help_text }}
{% endfor %}
{%- if loop.last %}
{% endif %} {%- else %}

No permissions granted.

{%- endfor %}
{{ _('Application') }}

{{ client.name }}

{%- if client.description %}

{{ client.description }}

{% endif %} {%- if client.website %}

{{ _('Visit application website') }}

{% endif %}

{{ client.get_users }} {{ 'user' if client.get_users == 1 else 'users' }}

{{ helpers.panel_end() }} {% endblock %}