]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/optin-request.html
tox: Add tox.ini file
[patchwork] / templates / patchwork / optin-request.html
1 {% extends "base.html" %}
2
3 {% block title %}opt-in{% endblock %}
4 {% block heading %}opt-in{% endblock %}
5
6 {% block body %}
7 {% if email_sent %}
8 <p><strong>Opt-in confirmation email sent</strong></p>
9 <p>An opt-in confirmation mail has been sent to
10 <strong>{{confirmation.email}}</strong>, containing a link. Please click on
11 that link to confirm your opt-in.</p>
12 {% else %}
13 {% if error %}
14 <p class="error">{{error}}</p>
15 {% endif %}
16
17 {% if form %}
18 <p>This form allows you to opt-in to automated email from patchwork. Use
19 this if you have previously opted-out of patchwork mail, but now want to
20 received notifications from patchwork.</p>
21 When you submit it, an email will be sent to your address with a link to click
22 to finalise the opt-in. Patchwork does this to prevent someone opting you in
23 without your consent.</p>
24 <form method="post" action="">
25 {% csrf_token %}
26 {{form.email.errors}}
27 <div style="padding: 0.5em 1em 2em;">
28 {{form.email.label_tag}}: {{form.email}}
29 </div>
30 <input type="submit" value="Send me an opt-in link">
31 </form>
32 {% endif %}
33
34 {% if error and admins %}
35 <p>If you are having trouble opting in, please email
36 {% for admin in admins %}
37 {% if admins|length > 1 and forloop.last %} or {% endif %}
38 {{admin.0}} &lt;<a href="mailto:{{admin.1}}">{{admin.1}}</a
39 >&gt;{% if admins|length > 2 and not forloop.last %}, {% endif %}
40 {% endfor %}
41 {% endif %}
42
43 {% endif %}
44
45 {% if user.is_authenticated %}
46 <p>Return to your <a href="{% url 'patchwork.views.user.profile' %}">user
47 profile</a>.</p>
48 {% endif %}
49
50 {% endblock %}