From 2accaa9561171f6d0dc96d80c1a644240716e9cb Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 20 Oct 2016 13:37:47 +0200 Subject: [PATCH] re-style unsubscription pages (#13614) --- corbo/static/css/corbo.css | 21 +++++++++++++++++++-- .../corbo/subscription_confirm_delete.html | 14 +++++++------- corbo/templates/corbo/unsubscription_done.html | 3 ++- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/corbo/static/css/corbo.css b/corbo/static/css/corbo.css index d0c79b1..90098a9 100644 --- a/corbo/static/css/corbo.css +++ b/corbo/static/css/corbo.css @@ -143,7 +143,24 @@ form ul li label { } .unsubscription { - background: #e6db74; - border: 1px solid #aaa; + background: #eee; + border: 1px solid #efefef; padding: 5px; + margin-top: 5em; + border-radius: 0.3em; + font-size: 1.1em; + text-align: center; +} + +.unsubscription h2 { + border-bottom: 1px solid #fff; +} + +.unsubscription button { + background: #000; + color: #fff; + border: 1px solid #fff; + padding: 10px; + border-radius: 0.3em; + text-transform: uppercase; } \ No newline at end of file diff --git a/corbo/templates/corbo/subscription_confirm_delete.html b/corbo/templates/corbo/subscription_confirm_delete.html index 5b8b5f7..fb1ee16 100644 --- a/corbo/templates/corbo/subscription_confirm_delete.html +++ b/corbo/templates/corbo/subscription_confirm_delete.html @@ -7,12 +7,12 @@ Unsubscription from {{ category }} {% block content %}
-{% blocktrans with object.category as category and object.get_identifier_display as identifier %} -Are you sure you want to unsubscribe {{ identifier }} from "{{ category }}"? -{% endblocktrans %} -
- {% csrf_token %} - -
+

{{ object.category }}

+ {% trans 'Click on "Unsubscribe" to stop receiving emails to this address:' %} + {{ object.get_identifier_display }} +
+ {% csrf_token %} + +
{% endblock %} diff --git a/corbo/templates/corbo/unsubscription_done.html b/corbo/templates/corbo/unsubscription_done.html index 0b01207..b89301b 100644 --- a/corbo/templates/corbo/unsubscription_done.html +++ b/corbo/templates/corbo/unsubscription_done.html @@ -6,5 +6,6 @@ {% endblock %} {% block content %} -
{% trans "You were successfully unsubcribed." %}
+{{ object }} +
{% trans "You were successfully unsubscribed." %}
{% endblock %} -- 2.9.3