Fix email display problems
This commit is contained in:
parent
ee1aa8f200
commit
0b4af7e40f
@ -74,18 +74,13 @@
|
|||||||
{{ gap }}
|
{{ gap }}
|
||||||
{% for item in group.bulletin_items %}
|
{% for item in group.bulletin_items %}
|
||||||
<tr> <!-- Main Digest content -->
|
<tr> <!-- Main Digest content -->
|
||||||
{% if item.image %}
|
|
||||||
<th class="small-12 large-3 columns first">
|
|
||||||
{% if item.link %}<a href="{{ item.link }}">{% endif %}<img src="{{ MEDIA_URL }}{{ item.image }}" alt="{{ item.title }}">{% if item.link %}</a>{% endif %}
|
|
||||||
</th>
|
|
||||||
{% endif %}
|
|
||||||
<th class="small-12 large-{% if item.image %}8{% else %}12 first{% endif %} columns last">
|
<th class="small-12 large-{% if item.image %}8{% else %}12 first{% endif %} columns last">
|
||||||
<b><h5>{{ item.title }}</h5></b>
|
<b><h5>{{ item.title }}</h5></b>
|
||||||
<p>{{ item.content | markdown }}</p>
|
<p>{{ item.content | markdown }}</p>
|
||||||
{% if item.link %}<p><a href="{{ item.link }}">Read more ›</a></p>{% endif %}
|
{% if item.link %}<p><a href="{{ item.link }}">Read more ›</a></p>{% endif %}
|
||||||
|
{% if not loop.last %}<hr>{% endif %}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% if not loop.last %}<hr>{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if more %}
|
{% if more %}
|
||||||
@ -93,19 +88,15 @@
|
|||||||
<p>More from MUMUS:</p>
|
<p>More from MUMUS:</p>
|
||||||
</th></tr>
|
</th></tr>
|
||||||
{{ gap }}
|
{{ gap }}
|
||||||
<tr> <!-- Digest Content 3 columns-->
|
{% for item in more %}
|
||||||
<table class="row"><tbody><tr>
|
<tr>
|
||||||
{% for item in more %}
|
<th class="small-12 large-4 columns{% if loop.first %} first{% endif %}{% if loop.last %} last{% endif %}">
|
||||||
<th class="small-12 large-4 columns{% if loop.first %} first{% endif %}{% if loop.last %} last{% endif %}">
|
{% if item.image %}{% if item.link %}<a href="{{ item.link }}">{% endif %}<img src="https://{{ settings.ALLOWED_HOSTS[0] }}{{ MEDIA_URL }}{{ item.image }}" alt="{{ item.title }}" style="max-height: 10em;">{% if item.link %}</a>{% endif %}<br>{% endif %}
|
||||||
{% if item.image %}{% if item.link %}<a href="{{ item.link }}">{% endif %}<img src="{{ MEDIA_URL }}{{ item.image }}" alt="{{ item.title }}">{% if item.link %}</a>{% endif %}<br>{% endif %}
|
<p>{{ item.content|striptags|truncate(200) }}</p>
|
||||||
<b><h5>{{ item.title }}</h5></b>
|
<p><a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('bulletin_preview') }}?full">Read more ›</a></p>
|
||||||
<p>{{ item.content|striptags|truncate(100) }}</p>
|
</th>
|
||||||
{% if item.link %}<p><a href="{{ item.link }}">Read more ›</a></p>{% endif %}
|
</tr>
|
||||||
<p style="font-size: 8pt;"><a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('membership') }}">Subscribe to {{ item.group.name }}</a></p>
|
{% endfor %}
|
||||||
</th>
|
|
||||||
{% endfor %}
|
|
||||||
</tr></tbody></table>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user