{% extends "one_column_body.html" %} {% block title %}{% trans %}Unsubscribe{% endtrans %}{% endblock %} {% block content %} {% set app_name = settings.APP_SHORT_NAME %}

{% trans %}Want to unsubcribe {{ verified_email }} from {{ app_name }}?{% endtrans %}

{% if result == 'success' %}{# success|ready|bad_input|bad_key|key_resent|error #}

{% trans %}Successfully unsubscribed.{% endtrans %}

{% elif result == 'ready' %}
{% csrf_token %} {{ unsubscribe_form.key }}{{ unsubscribe_form.email }}
{% elif result == 'bad_input' %} {% set link_url = 'user_unsubscribe'|url() %}

{% trans %}Bad unsubscribe link.{% endtrans %} {% trans %}Expected format is {{ link_url }}?key=<unsubscribe key>&email=<email address>{% endtrans %}

{% elif result == 'bad_key' %}

{% trans %}The unsubscribe key sent with the link had expired.{% endtrans %}

{% csrf_token %} {{ unsubscribe_form.key }}{{ unsubscribe_form.email }}
{% elif result == 'key_resent' %}

{% trans %}Unsubscribe link resent. Please check your email.{% endtrans %}

{% elif result == 'error' %}

{% trans %}Sorry, there was an unexpected error.{% endtrans %}

{% endif %} {% endblock %}