]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/user-link.html
Implement confirmation emails.
[patchwork] / templates / patchwork / user-link.html
index 3eeb527392279669e50b01f1918636a36ff4f931..588a9994beeef29f569e43e502d6e49c4e1fa0af 100644 (file)
@@ -6,7 +6,7 @@
 
 {% block body %}
 
-{% if confirmation %}
+{% if confirmation and not error %}
 <p>A confirmation email has been sent to {{ confirmation.email }}.</p>
 
 <p>beta link: <a
@@ -19,6 +19,9 @@
    <p>There was an error submitting your link request.</p>
     {{ form.non_field_errors }}
    {% endif %}
+   {% if error %}
+    <ul class="errorlist"><li>{{error}}</li></ul>
+   {% endif %}
 
    <form action="{% url patchwork.views.user.link %}" method="post">
     {{linkform.email.errors}}