misc: add possibility of image in email head (#25388)

This commit is contained in:
Frédéric Péters 2018-07-20 08:05:23 +02:00
parent 6e24a922f5
commit 959608ba50
4 changed files with 8 additions and 14 deletions

View File

@ -1,7 +1,12 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
<tr>
<td style="padding: 20px 0; text-align: center; font-family: sans-serif;">
<span style="font-size: 15px; line-height: 20px;">{% firstof global_title "Compte Citoyen" %}</span>
<span style="font-size: 15px; line-height: 20px;">
{% if email_header_img %}<img style="max-width: 80%" alt="{% firstof global_title "Compte Citoyen" %}" src="{{portal_url}}static/{{css_variant}}/{{ email_header_img }}"/>
{% else %}
{% firstof global_title "Compte Citoyen" %}
{% endif %}
</span>
</td>
</tr>
</table>

View File

@ -1,6 +0,0 @@
{% load static %}
<table role="presentation" cellspacing="0" cellpadding="5" border="0" align="center" width="100%" style="max-width: 600px;">
<tr>
<td style="text-align: center;"><img src="{% firstof portal_url site_base %}{% static "" %}{{css_variant}}/images/logo_mairie.jpg" width="200" height="66" alt="Mairie d'Orléans" /></td>
</tr>
</table>

View File

@ -1,7 +0,0 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
<tr>
<td style="padding: 20px 0; text-align: center; font-family: sans-serif;">
<span style="font-size: 15px; line-height: 20px;"><img style="max-width: 80%" alt="Strasbourg.eu - eurométropole" src="{{portal_url}}static/{{css_variant}}/img/logo-eurometropole.png"/></span>
</td>
</tr>
</table>

View File

@ -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"