forked from DGNum/gestioCOF
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends "cofcms/base_aside.html" %}
|
|
{% load static cofcms_tags wagtailimages_tags i18n wagtailcore_tags %}
|
|
|
|
{% 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">
|
|
<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>
|
|
<div class="actu-misc">
|
|
{% if actu.is_event %}
|
|
{% get_current_language as curlang %}
|
|
<span class="actu-minical">{% mini_calendar actu curlang %}</span><span class="actu-dates">{{ actu.dates }}</span>
|
|
{% else %}
|
|
{{ actu.body|safe|truncatewords_html:25 }}
|
|
{% endif %}
|
|
</div>
|
|
<a href="{% pageurl actu %}" class="actu-overlay"></a>
|
|
</article>
|
|
{% endfor %}
|
|
</section>
|
|
{% endblock %}
|