public-health-ch/publichealth/home/templates/infos.html

29 lines
755 B
HTML
Raw Normal View History

2017-03-08 21:54:15 +00:00
{% load wagtailcore_tags wagtailimages_tags %}
2019-08-27 12:10:35 +00:00
{% if page.trans_infos %}
2017-03-08 21:54:15 +00:00
<section id="three" class="wrapper align-center">
<div class="container">
2017-05-02 14:59:36 +00:00
<div class="row infoblocks">
2017-03-08 21:54:15 +00:00
{% for block in page.trans_infos %}
<article class="col-md-4">
<a href="{{ block.value.url }}">
<div class="image">
{% image block.value.photo fill-300x300 %}
</div>
<header>
<h3>{{ block.value.title }}</h3>
</header>
</a>
2017-03-08 21:54:15 +00:00
{{ block.value.summary|richtext }}
{% if block.value.action %}
2017-03-08 21:54:15 +00:00
<footer>
<a href="{{ block.value.url }}" class="btn btn-default">{{ block.value.action }}</a>
</footer>
{% endif %}
2017-03-08 21:54:15 +00:00
</article>
{% endfor %}
</div>
</div>
2017-05-02 14:59:36 +00:00
</section>
2019-08-27 12:10:35 +00:00
{% endif %}