{% extends 'base.html' %} {% load djblets_deco i18n pipeline %} {% block title %}{% blocktrans with application_name=application.name %}Authorize {{application_name}}{% endblocktrans %}{% endblock title %} {% block css %} {{block.super}} {% stylesheet 'oauth' %} {% endblock css %} {% block content %} {% box 'oauth-authorize' %} {% if not error %}

{% blocktrans with application_name=application.name %}Authorize {{application_name}}?{% endblocktrans %}

{% csrf_token %} {% for field in form %} {% if field.is_hidden %} {{field}} {% endif %} {% endfor %} {% if scopes_descriptions %}

{% trans 'This application requires the following permissions:' %}

{% else %}

{% trans 'This application is not requesting any permissions.' %}

{% endif %} {{form.errors}} {{form.non_field_errors}}
{% else %}

{% blocktrans with err_msg=error.error %}Error: {{err_msg}}{% endblocktrans %}

{{error.description}}

{% endif %} {% endbox %} {% endblock content %}