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

{% block content %}
  <main id="reddit--page" class="main">
    <section class="section text-section">
        {% if error %}
          <h1 class="h1">{% trans "Reddit authorization failed" %}</h1>
          <p>{{ error }}</p>
        {% elif access_token and refresh_token %}
          <h1 class="h1">{% trans "Reddit account is linked" %}</h1>
          <p>{% trans "Your reddit 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 %}
