camp/content/templates/preview.html

20 lines
718 B
HTML
Raw Normal View History

2017-12-18 14:54:39 +00:00
<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">
2017-12-18 15:03:10 +00:00
<a href="{{ content.get_absolute_url }}" class="sidebar-title"> {{content.title}} </a>
{% if content.type.name == 'events' %}
2017-12-18 14:54:39 +00:00
<h6 class="sidebar-date">
<font color="#ef4e5c">
<b> {{ content.datestart }} {% if content.dateend %} - {{content.dateend}} {% endif %} </b>
</font>
{% if content.place %}<br/>{{content.place}}{% endif%}
2017-12-18 15:03:10 +00:00
</h6>
{% endif %}
<p> {{ content.formatted_teaser }} </p>
2017-12-18 14:54:39 +00:00
</div>
</div>