{% extends "base.html" %}
{% load i18n %}

{% block content %}
  <main id="twitter--page" class="main">
    <section class="section text-section">
        {% if error %}
          <h1 class="h1">{% trans "Twitter authorization failed" %}</h1>
          <p>{{ error }}</p>
        {% elif authorized %}
          <h1 class="h1">{% trans "Twitter account is linked" %}</h1>
          <p>{% trans "Your Twitter account was successfully linked." %}</p>
        {% endif %}

        <p>
          <a class="link" href="{% url 'accounts:settings:integrations' %}">{% trans "Return to integrations page" %}</a>
        </p>
    </section>
  </main>
{% endblock %}
