Ajout de l'illustration

This commit is contained in:
Jean-Marie Favreau 2023-11-05 12:47:50 +01:00
parent 69eaaa4249
commit c21ef40c84
2 changed files with 21 additions and 7 deletions

View File

@ -132,3 +132,19 @@ svg {
font-weight: bold;
}
.illustration {
float: right;
width: 20em;
margin: 0 0 0.5em .5em;
padding: 0.3em;
}
.illustration-small {
@extend .illustration;
width: 10em;
}
footer {
clear: both;
}

View File

@ -58,14 +58,12 @@
</header>
{% endif %}
{% comment %}
manque encore:
* image, image_alt
{% endcomment %}
{% if event.image %}
<article class='illustration{% if display in "in list by day" %}-small{% endif %}'>
<img src="{{ event.image }}" alt="{{ event.image_alt }}" />
</article>
{% endif %}
{% comment %}
On affiche le corps du message avec plus ou moins de longueur
{% endcomment %}
{% if display in "in list by day" %}
<p>{{ event.description |truncatewords:20 }}</p>
{% else %}