camp/content/templates/event_preview.html

37 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2017-12-18 12:54:04 +00:00
<div class="row">
{% for content in events %}
{% if content.type.name == 'news' %}
<div class="row right-items">
<div class= "small-12 columns">
<h6 class="sidebar-date">
<font color="#ef4e5c"> <b> {{content.datestart}} </b>
{{ content.title }} <br />
2017-12-18 14:17:06 +00:00
{{ content.formatted_header }}
2017-12-18 12:54:04 +00:00
</font>
</h6>
</div>
</div>
{% elif content.type.name == 'events' %}
<div class="row right-items">
{% if content.image_url %}
<div class="small-6 columns">
2017-12-18 14:12:43 +00:00
<a href="{{ content.get_absolute_url }}">
<img src="{{ content.image_url }}">
</a>
2017-12-18 12:54:04 +00:00
</div>
{% endif %}
<div class="small-6 columns">
<a href="{{ content.get_absolute_url }}" class="sidebar-title">{{ content.title }}</a>
<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 %}
</h6>
<p> {{content.formatted_teaser}} </p>
</div>
</div>
{% endif %}
{% endfor %}
</div>