From 650eed2dd4be8fc5441f11e33a8100d3c098bda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20S=C3=A9chet?= Date: Fri, 29 Jul 2022 16:51:37 +0200 Subject: [PATCH] vendee: mail logo in footer, added emails:logo slot (#67817) --- static/vendee-cd85/config.json | 6 ++++-- templates/variants/vendee-cd85/emails/footer.html | 12 ++++++++++++ templates/variants/vendee-cd85/emails/header.html | 10 ++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 templates/variants/vendee-cd85/emails/footer.html create mode 100644 templates/variants/vendee-cd85/emails/header.html diff --git a/static/vendee-cd85/config.json b/static/vendee-cd85/config.json index eb59d93e..86422dda 100644 --- a/static/vendee-cd85/config.json +++ b/static/vendee-cd85/config.json @@ -1,13 +1,15 @@ { "label": "Vendée (CD85)", "variables": { - "theme_color": "#ED1B24" + "theme_color": "#ED1B24", + "email_header_asset": "emails:logo" }, "settings": { "combo": { "COMBO_ASSET_SLOTS.update": { "header:background": { "label": "Têtière : fond" }, - "header:logo": { "label": "Têtière : logo" } + "header:logo": { "label": "Têtière : logo" }, + "emails:logo": {"label": "Emails : logo"} } } } diff --git a/templates/variants/vendee-cd85/emails/footer.html b/templates/variants/vendee-cd85/emails/footer.html new file mode 100644 index 00000000..68881878 --- /dev/null +++ b/templates/variants/vendee-cd85/emails/footer.html @@ -0,0 +1,12 @@ +{% extends "emails/footer.html" %} + +{% block footer %} + {% if email_header_asset %} + {% firstof global_title + {% endif %} + {% if email_signature %} + {{ email_signature|linebreaks }} + {% endif %} +{% endblock %} diff --git a/templates/variants/vendee-cd85/emails/header.html b/templates/variants/vendee-cd85/emails/header.html new file mode 100644 index 00000000..c979a533 --- /dev/null +++ b/templates/variants/vendee-cd85/emails/header.html @@ -0,0 +1,10 @@ + + + + +
+ + {% firstof global_title "Compte Citoyen" %} + +
+