Handle media_url of embedded images in simple mail renderer better for instances with dedicated media-hosts

This commit is contained in:
Martin Gross
2020-01-21 10:36:46 +01:00
parent 91ae89d463
commit 3fff3378c0

View File

@@ -172,8 +172,13 @@
<!--[if !mso]><!-- -->
<tr>
<td style="line-height: 0" align="center">
<img src="{{ site_url }}{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
style="height: auto; max-width: 100%;" />
{% if event.settings.logo_image|thumb:'5000x120'|first == '/' %}
<img src="{{ site_url }}{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
style="height: auto; max-width: 100%;" />
{% else %}
<img src="{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
style="height: auto; max-width: 100%;" />
{% endif %}
</td>
</tr>
<!--<![endif]-->