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 { .description {
padding: 0; padding: 0;
position: relative; position: relative;
.texte {
padding-bottom: 3.5em;
}
} }
.right.bottom { .right.bottom {
position: absolute; position: absolute;
@ -1232,7 +1235,7 @@ article {
} }
.a-venir { .a-venir, .place {
article#filters { article#filters {
margin: 2em 0; margin: 2em 0;
} }

View File

@ -121,7 +121,7 @@
</header> </header>
{% with indexti=cd.id %} {% with indexti=cd.id %}
{% for event in ti.events %} {% 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 %} {% endfor %}
{% endwith %} {% endwith %}
</article> </article>

View File

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

View File

@ -22,6 +22,8 @@
{% endif %} {% endif %}
{{ event.category | small_cat_recurrent:event.has_recurrences }} {{ event.category | small_cat_recurrent:event.has_recurrences }}
{% if not no_location %}
{% if event.location or event.exact_location %}<hgroup>{% endif %} {% if event.location or event.exact_location %}<hgroup>{% endif %}
<h4> <h4>
{{ event|picto_status }} {{ event|picto_status }}
@ -34,6 +36,7 @@
</h5> </h5>
</hgroup> </hgroup>
{% endif %} {% endif %}
{% endif %}
{% if event|need_complete_display:True %}<p> {% if event|need_complete_display:True %}<p>
{% picto_from_name "calendar" %} {% picto_from_name "calendar" %}
@ -67,7 +70,7 @@
</header> </header>
<div class="description"> <div class="description">
<div> <div class="texte">
<p>{{ event.description |linebreaks2 | truncatewords:60 }}</p> <p>{{ event.description |linebreaks2 | truncatewords:60 }}</p>
</div> </div>
<div class="right bottom"> <div class="right bottom">