On améliore le rendu des événements d'un lieu

Fix #178
This commit is contained in:
Jean-Marie Favreau 2024-10-29 23:27:19 +01:00
parent 82bbbb20b1
commit db20f4a4de
4 changed files with 23 additions and 18 deletions

View File

@ -393,6 +393,9 @@ article.day>ul {
.description {
padding: 0;
position: relative;
.texte {
padding-bottom: 3.5em;
}
}
.right.bottom {
position: absolute;
@ -1232,7 +1235,7 @@ article {
}
.a-venir {
.a-venir, .place {
article#filters {
margin: 2em 0;
}

View File

@ -121,7 +121,7 @@
</header>
{% with indexti=cd.id %}
{% for event in ti.events %}
{% include "agenda_culturel/single-event/event-in-upcoming-inc.html" with event=event filter=filter day=day indexti=indexti %}
{% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event filter=filter day=day indexti=indexti %}
{% endfor %}
{% endwith %}
</article>

View File

@ -20,6 +20,7 @@
{% block fluid %}{% endblock %}
{% block body-class %}place{% endblock %}
{% block content %}
<article>
@ -83,9 +84,7 @@
{% include "agenda_culturel/navigation.html" with page_obj=page_obj %}
{% for event in object_list %}
<article>
{% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=event no_location=1 %}
</article>
{% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event no_location=1 %}
{% endfor %}
{% include "agenda_culturel/navigation.html" with page_obj=page_obj %}

View File

@ -22,19 +22,22 @@
{% endif %}
{{ event.category | small_cat_recurrent:event.has_recurrences }}
{% if event.location or event.exact_location %}<hgroup>{% endif %}
<h4>
{{ event|picto_status }}
<a href="{{ event.get_absolute_url }}">{{ event.title }}</a>
</h4>
{% if event.location or event.exact_location %}
<h5>
{% picto_from_name "map-pin" %}
{% include "agenda_culturel/event-location-inc.html" with event=event %}
</h5>
</hgroup>
{% endif %}
{% if not no_location %}
{% if event.location or event.exact_location %}<hgroup>{% endif %}
<h4>
{{ event|picto_status }}
<a href="{{ event.get_absolute_url }}">{{ event.title }}</a>
</h4>
{% if event.location or event.exact_location %}
<h5>
{% picto_from_name "map-pin" %}
{% include "agenda_culturel/event-location-inc.html" with event=event %}
</h5>
</hgroup>
{% endif %}
{% endif %}
{% if event|need_complete_display:True %}<p>
{% picto_from_name "calendar" %}
@ -67,7 +70,7 @@
</header>
<div class="description">
<div>
<div class="texte">
<p>{{ event.description |linebreaks2 | truncatewords:60 }}</p>
</div>
<div class="right bottom">