diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index b2e37f3..99a7048 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -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; +} + diff --git a/src/agenda_culturel/templates/agenda_culturel/event-inc.html b/src/agenda_culturel/templates/agenda_culturel/event-inc.html index 45a8b48..7366959 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/event-inc.html @@ -58,14 +58,12 @@ {% endif %} - {% comment %} - manque encore: - * image, image_alt - {% endcomment %} + {% if event.image %} +
+ {{ event.image_alt }} +
+ {% endif %} - {% comment %} - On affiche le corps du message avec plus ou moins de longueur - {% endcomment %} {% if display in "in list by day" %}

{{ event.description |truncatewords:20 }}

{% else %}