{% extends "account/base.html" %}
{% load static i18n account %}

{% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock%}
{% block auth_title %}{% trans "Confirm E-mail Address" %}{% endblock%}

{% block auth_body %}
  {% if confirmation %}
      {% user_display confirmation.email_address.user as user_display %}
      <p class="login-box-msg">{% blocktrans trimmed with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an e-mail address for user {{ user_display }}.{% endblocktrans %}</p>
      <form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
      {% csrf_token %}
        <button class="btn btn-primary w-100 mb-3" type="submit">{% trans 'Confirm' %}</button>
      </form>
  {% else %}
      {% url 'account_email' as email_url %}
      <p class="login-box-msg">{% blocktrans trimmed %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new e-mail confirmation request</a>.{% endblocktrans %}</p>
  {% endif %}
{% endblock %}
