mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Email layout with logo: Allow large logos
This commit is contained in:
@@ -200,13 +200,13 @@
|
|||||||
{% if event.settings.logo_image %}
|
{% if event.settings.logo_image %}
|
||||||
<!--[if !mso]><!-- -->
|
<!--[if !mso]><!-- -->
|
||||||
<tr>
|
<tr>
|
||||||
<td style="line-height: 0;" align="center" class="logo">
|
<td style="line-height: 0; {% if event.settings.logo_image_large %}padding: 0;{% endif %}" align="center" class="logo">
|
||||||
{% if event.settings.logo_image|thumb:'5000x120'|first == '/' %}
|
{% if event.settings.logo_image_large %}
|
||||||
<img src="{{ site_url }}{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
|
<img src="{% if event.settings.logo_image|thumb:'1170x5000'|first == '/' %}{{ site_url }}{% endif %}{{ event.settings.logo_image|thumb:'1170x5000' }}" alt="{{ event.name }}"
|
||||||
style="height: auto; max-width: 100%;" />
|
style="height: auto; max-width: 100%;" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
|
<img src="{% if event.settings.logo_image|thumb:'5000x120'|first == '/' %}{{ site_url }}{% endif %}{{ event.settings.logo_image|thumb:'5000x120' }}" alt="{{ event.name }}"
|
||||||
style="height: auto; max-width: 100%;" />
|
style="height: auto; max-width: 100%;" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user