Fix display of images/more in bulletin
This commit is contained in:
parent
954348192b
commit
66de568c69
@ -76,6 +76,7 @@
|
|||||||
<tr> <!-- Main Digest content -->
|
<tr> <!-- Main Digest content -->
|
||||||
<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>
|
||||||
|
{% if item.image %}<img src="https://{{ settings.ALLOWED_HOSTS[0] }}{{ MEDIA_URL }}{{ item.image }}" alt="{{ item.title }}" style="max-height: 10em; float: left; margin-right: 1em;">{% endif %}
|
||||||
<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 %}
|
{% if not loop.last %}<hr>{% endif %}
|
||||||
@ -90,9 +91,10 @@
|
|||||||
{{ gap }}
|
{{ gap }}
|
||||||
{% for item in more %}
|
{% for item in more %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="small-12 large-4 columns{% if loop.first %} first{% endif %}{% if loop.last %} last{% endif %}">
|
<th class="small-12 large-4 columns first last">
|
||||||
{% 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 %}
|
<b><h5>{{ item.title }}</h5></b>
|
||||||
<p>{{ item.content|striptags|truncate(200) }}</p>
|
{% if item.image %}<img src="https://{{ settings.ALLOWED_HOSTS[0] }}{{ MEDIA_URL }}{{ item.image }}" alt="{{ item.title }}" style="max-height: 10em; float: left; margin-right: 1em;">{% endif %}
|
||||||
|
<p>{{ item.content | truncate(200) | markdown }}</p>
|
||||||
<p><a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('bulletin_preview') }}?full">Read more ›</a></p>
|
<p><a href="https://{{ settings.ALLOWED_HOSTS[0] }}{{ url('bulletin_preview') }}?full">Read more ›</a></p>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user