camp/content/templates/preview.html
2017-12-18 14:54:39 +00:00

20 lines
744 B
HTML

<div class="row related-row">
<div class="small-6 columns">
{% if content.image_url %}
<img src="{{ content.image_url }}">
{% endif %}
</div>
<div class="small-6 columns">
<h6><a href="{{ content.get_absolute_url }}" class="sidebar-title"> {{content.title}} </a> </h6>
<h6 class="sidebar-date">
{% if content.type.name == 'events' %}
<font color="#ef4e5c">
<b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b>
</font>
{% if content.place %}<br/>{{content.place}}{% endif%}
{% endif %}
</h6>
<p> {{ content.formatted_teaser }} </p>
</div>
</div>