2017-03-14 10:10:32 +00:00
|
|
|
{% load wagtailcore_tags wagtailimages_tags puput_tags %}
|
|
|
|
|
2017-07-26 10:42:06 +00:00
|
|
|
<!-- Front page news -->
|
2017-02-15 09:54:06 +00:00
|
|
|
<section id="news">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-07-03 14:49:12 +00:00
|
|
|
{% for entry in blogentries %}
|
2017-07-26 10:42:06 +00:00
|
|
|
<!-- Blog post {{ entry.id }} -->
|
|
|
|
<div class="col-md-4 col-sm-6 col-xs-12 blog-entry">
|
2017-02-15 09:54:06 +00:00
|
|
|
<div class="panel panel-default">
|
2017-03-14 10:10:32 +00:00
|
|
|
{% if entry.header_image %}
|
|
|
|
{% image entry.header_image fill-360x270 %}
|
|
|
|
{% endif %}
|
2017-02-15 09:54:06 +00:00
|
|
|
<div class="panel-body">
|
2017-03-14 10:10:32 +00:00
|
|
|
<h3><span>{{ entry.title }}</span></h3>
|
|
|
|
<p>
|
|
|
|
{% if entry.excerpt %}
|
2017-05-09 10:21:38 +00:00
|
|
|
{{ entry.excerpt|striptags }}
|
|
|
|
{% else %}
|
2017-07-03 15:21:31 +00:00
|
|
|
{{ entry.body|striptags|truncatewords_html:40 }}
|
2017-05-09 10:21:38 +00:00
|
|
|
{% endif %}
|
2017-03-14 10:10:32 +00:00
|
|
|
</p>
|
2017-09-04 13:30:33 +00:00
|
|
|
<a href="{% pageurl entry %}" class="btn btn-default btn-xs"> ... </a>
|
2017-02-15 09:54:06 +00:00
|
|
|
</div>
|
2017-03-14 10:10:32 +00:00
|
|
|
<a href="{% pageurl entry %}" class="fill"></a>
|
2017-02-15 09:54:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-04 13:30:33 +00:00
|
|
|
{% empty %}
|
|
|
|
<!-- No blogs today -->
|
|
|
|
{% endfor %}
|
|
|
|
<h4 class="partner-news"><a href="/aktuelles/">Partner news</a></h4>
|
|
|
|
{% for entry in newsentries %}
|
2017-07-26 10:42:06 +00:00
|
|
|
<!-- News entry {{ entry.id }} -->
|
|
|
|
<div class="col-md-4 col-sm-6 col-xs-12 news-entry">
|
|
|
|
{% if entry.visual %}
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<img src="{{ entry.visual }}">
|
|
|
|
{% else %}
|
|
|
|
<div class="panel panel-fulltext">
|
|
|
|
{% endif %}
|
|
|
|
<div class="panel-body">
|
|
|
|
<h3><span>{{ entry.title|striptags|truncatewords_html:10 }}</span></h3>
|
|
|
|
<p>
|
2017-09-04 13:30:33 +00:00
|
|
|
<em><small><span>{{ entry.author }}</span></small></em>
|
2017-07-26 10:42:06 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<a href="{{ entry.link }}" target="_blank" class="fill"></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 10:10:32 +00:00
|
|
|
{% empty %}
|
2017-05-31 08:36:09 +00:00
|
|
|
<!-- No news today -->
|
2017-05-09 10:21:38 +00:00
|
|
|
{% endfor %}
|
2017-02-15 09:54:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 10:10:32 +00:00
|
|
|
</section>
|