{% extends 'base.html' %} {% block title %}{{ _('Applications') }} - CritiqueBrainz{% endblock %} {% block content %}

{{ _('Applications') }}

{{ _('Your applications') }}

{{ _('Create new application') }}
{% if not applications %}

{{ _('No applications found') }}

{% else %} {% for app in applications %} {% endfor %}
{{ _('Name') }} {{ _('Website') }} {{ _('Client ID') }} {{ _('Client secret') }}
{{ app.name }} {{ app.website }} {{ app.client_id }} {{ app.client_secret }} {{ _('Modify') }} {{ _('Delete') }}
{% endif %}
{{ _('Developer documentation is available at %(link)s.', link='critiquebrainz.readthedocs.io'|safe) }}

{{ _('Authorized applications') }}

{% if not tokens %}

{{ _('No authorized applications found') }}

{% else %} {% for token in tokens %} {% endfor %}
{{ _('Name') }} {{ _('Website') }} {{ _('Access') }}
{{ token.client_name }} {{ token.client_website }} {% if token.scopes %}
    {% set scopes = token.scopes.split() %} {% from 'macros.html' import scope_desc with context %} {% for scope in scopes %}
  • {{ scope_desc(scope) }}
  • {% endfor %}
{% else %} {{ _('No special requirements') }} {% endif %}
{{ _('Revoke access') }}
{% endif %} {% endblock %}