{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ site_name }} - {% trans 'Verify Your Email' %}</title>
    {% include "common_libs.html" %}
  </head>
  <body>
    <div class="container">
      <article>
        <header style="text-align: center;">
          <img src="{{ site_logo }}" class="logo" alt="logo">
        </header>
        <h4>{% trans 'Verify Your Email' %}</h4>
        {% if success %}
          <p>
            {{ request.user.email }} {% trans "Verified successfully." %}
            <br>
            <a href="{{ request.session.next_url | default:'/' }}" class="button">{% trans 'Continue' %}</a>
          </p>
        {% else %}
          <p>
            {{ error }}
            <a href="{% url 'users:login' %}">{% trans "Login again" %}</a>
          </p>
        {% endif %}
      </article>
    </div>
  </body>
</html>
