gestioCOF/gestioncof/cms/templates/cofcms/cof_root_page.html

34 lines
1.3 KiB
HTML
Raw Normal View History

{% extends "cofcms/base_aside.html" %}
2017-08-26 18:05:20 +02:00
{% load static cofcms_tags wagtailimages_tags i18n wagtailcore_tags %}
2018-01-28 19:09:56 +01:00
{% block aside_title %}Agenda{% endblock %}
{% block aside %}
{% calendar %}
{% endblock %}
{% block content %}
<section class="intro">
<h1>{{ page.title }}</h1>
<div>{{ page.introduction|safe }}</div>
</section>
<section class="actuhome">
{% for actu in page.actus %}
<article class="actu">
2017-08-26 18:05:20 +02:00
<div class="actu-header" {% if actu.image %}{% image actu.image fill-400x200 as img %}style="background-image:url('{{ img.url }}');"{% endif %}>
<h2><a href="{% pageurl actu %}">{{ actu.title }}</a></h2>
</div>
2017-09-27 23:58:50 +02:00
<div class="actu-misc">
{% if actu.is_event %}
2017-08-26 18:05:20 +02:00
{% get_current_language as curlang %}
<span class="actu-minical">{% mini_calendar actu curlang %}</span><span class="actu-dates">{{ actu.dates }}</span>
2017-09-27 23:58:50 +02:00
{% else %}
2018-01-22 21:24:20 +01:00
{{ actu.body|safe|truncatewords_html:10 }}
2017-09-27 23:58:50 +02:00
{% endif %}
</div>
<a href="{% pageurl actu %}" class="actu-overlay"></a>
</article>
{% endfor %}
</section>
{% endblock %}