summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/optout-request.html
blob: 092dbbbf3d5339a04f74fbccbf6454c8c1185d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends "base.html" %}

{% block title %}opt-out{% endblock %}
{% block heading %}opt-out{% endblock %}

{% block body %}
{% if email_sent %}
<p><strong>Opt-out confirmation email sent</strong></p>
<p>An opt-out confirmation mail has been sent to
<strong>{{confirmation.email}}</strong>, containing a link. Please click on
that link to confirm your opt-out.</p>
{% else %}
{% if error %}
<p class="error">{{error}}</p>
{% endif %}

{% if form %}
<p>This form allows you to opt-out of automated email from patchwork.</p>
<p>If you opt-out of email, Patchwork may still email you if you do certain
actions yourself (such as create a new patchwork account), but will not send
you unsolicited email.</p>
When you submit it, one email will be sent to your address with a link to click
to finalise the opt-out. Patchwork does this to prevent someone opting you out
without your consent.</p>
<form method="post" action="">
{% csrf_token %}
{{form.email.errors}}
<div style="padding: 0.5em 1em 2em;">
{{form.email.label_tag}}: {{form.email}}
</div>
<input type="submit" value="Send me an opt-out link">
</form>
{% endif %}

{% if error and admins %}
<p>If you are having trouble opting out, please email
{% for admin in admins %}
{% if admins|length > 1 and forloop.last %} or {% endif %}
{{admin.0}} &lt;<a href="mailto:{{admin.1}}">{{admin.1}}</a
>&gt;{% if admins|length > 2 and not forloop.last %}, {% endif %}
{% endfor %}
{% endif %}

{% endif %}

{% if user.is_authenticated %}
<p>Return to your <a href="{% url 'patchwork.views.user.profile' %}">user
profile</a>.</p>
{% endif %}

{% endblock %}