From 4b8316e882e65750ff2af15ed6f36fbb416ab228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 20 Jul 2018 08:05:23 +0200 Subject: [PATCH] misc: add possibility of image in email head (#25388) --- templates/emails/header.html | 7 ++++++- templates/variants/orleans/emails/header.html | 6 ------ templates/variants/strasbourg-2018/emails/header.html | 7 ------- themes.json | 2 ++ 4 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 templates/variants/orleans/emails/header.html delete mode 100644 templates/variants/strasbourg-2018/emails/header.html diff --git a/templates/emails/header.html b/templates/emails/header.html index 7a72d1e..b15a4bc 100644 --- a/templates/emails/header.html +++ b/templates/emails/header.html @@ -1,7 +1,12 @@
- {% firstof global_title "Compte Citoyen" %} + + {% if email_header_img %}{% firstof global_title + {% else %} + {% firstof global_title "Compte Citoyen" %} + {% endif %} +
diff --git a/templates/variants/orleans/emails/header.html b/templates/variants/orleans/emails/header.html deleted file mode 100644 index 0fbf420..0000000 --- a/templates/variants/orleans/emails/header.html +++ /dev/null @@ -1,6 +0,0 @@ -{% load static %} - - - - -
Mairie d'Orléans
diff --git a/templates/variants/strasbourg-2018/emails/header.html b/templates/variants/strasbourg-2018/emails/header.html deleted file mode 100644 index 4a23c30..0000000 --- a/templates/variants/strasbourg-2018/emails/header.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - -
- Strasbourg.eu - eurométropole -
diff --git a/themes.json b/themes.json index 846e23a..2d5135d 100644 --- a/themes.json +++ b/themes.json @@ -365,6 +365,7 @@ "label": "Orléans", "variables": { "css_variant": "orleans", + "email_header_img": "images/logo_mairie.jpg", "theme_color": "#34697D" } }, @@ -508,6 +509,7 @@ "label": "Mon Strasbourg", "variables": { "css_variant": "strasbourg-2018", + "email_header_img": "img/logo-eurometropole.png", "favicon": "strasbourg-2018/img/favicon.png", "no_extra_js": false, "theme_color": "#31455D" -- 2.18.0