On rend explicite le nombre d'événements
This commit is contained in:
parent
82a73d8d00
commit
27ee55fbfb
@ -86,7 +86,9 @@
|
||||
<a role="button" class="secondary slide-buttons" href="#index-avenir" data-placement="left" data-tooltip="Retour en haut">{% picto_from_name "chevrons-up" %}</a>
|
||||
{% if cd.is_today %}
|
||||
<hgroup>
|
||||
<h2>Aujourd'hui <a href="#{{ cd.id }}" role="button" class="badge">{{ cd.events|length }} {% picto_from_name "calendar" %}</a></h2>
|
||||
{% with cd.events|length as nb_events %}
|
||||
<h2>Aujourd'hui <a href="#{{ cd.id }}" role="button" class="badge">{{ nb_events }} événement{{ nb_events|pluralize }} {% picto_from_name "calendar" %}</a></h2>
|
||||
{% endwith %}
|
||||
<h3>{{ cd.date|date:"l j F Y"|frdate }}</h3>
|
||||
</hgroup>
|
||||
{% else %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user