{% load i18n %}
{% for error in form.non_field_errors %}
<div class="form-errors-block">
  <ul class="list-unstyled">
    <li>
      {{ error }}
    </li>
    {% if form.user_ban and form.user_ban.user_message %}
    <li>
      <small>
        {{ form.user_ban.user_message|escape|urlize|linebreaksbr }}
      </small>
    </li>
    {% elif form.user_cache.activation_by_user %}
    <li>
      <a href="{% url 'misago:request_activation' %}">
        {% trans "Click here to activate your account." %}
      </a>
    </li>
    {% endif %}
  </ul>
</div>
{% endfor %}
