Amélioration de l'affichage

- simplification de certains titres
- affichage de la date de l'événement si nécessaire
- ajout d'icones sur les boutons. Fix #52
This commit is contained in:
Jean-Marie Favreau 2023-12-17 16:33:15 +01:00
parent 4515264dfc
commit bb8d26d04e
8 changed files with 9 additions and 12 deletions

View File

@ -115,7 +115,7 @@ span.small-cat {
}
svg {
vertical-align: middle;
vertical-align: -0.125em;
}
.ephemeris {
@ -601,9 +601,6 @@ nav .badge {
font-size: 70%;
padding: 0.2em .8em;
border-radius: .5em;
svg {
vertical-align: -0.125em;
}
}
form [role="button"] {

View File

@ -1,6 +1,6 @@
{% load utils_extra %}
<a href="{% url 'edit_event' event.id %}" role="button">modifier</a>
<a href="{% url 'edit_event' event.id %}" role="button">modifier {% picto_from_name "edit" %}</a>
{% if event.status != "published" %}
<a href="{% url 'change_status_event' event.id 'published' %}" role="button">publier {% picto_from_name "eye" %}</a>

View File

@ -16,14 +16,14 @@
{% endblock %}
{% block title %}
Événements du {{ day | date:"l j F" }}
{{ day | date:"l j F Y" }}
{% endblock %}
{% block content %}
<h1>Les événements du {{ day | date:"l j F" }}</h1>
<h1>{{ day | date:"l j F Y" }}</h1>
{% include "agenda_culturel/filter-inc.html" with filter=filter %}

View File

@ -17,7 +17,7 @@
{% endblock %}
{% block title %}
Événements {{ calendar.firstdate | date:"F o"|add_de }}
{{ calendar.firstdate | date:"F o" }}
{% endblock %}
{% block content %}

View File

@ -17,7 +17,7 @@
{% endblock %}
{% block title %}
Événements de la semaine {{ week }} - {{ year }}
Semaine du {{ calendar.calendar_days_list.0.date }}
{% endblock %}
{% block content %}

View File

@ -27,7 +27,7 @@
</hgroup>
{% endif %}
{% if event|need_complete_display:true %}<p>
{% if event|need_complete_display:True %}<p>
{% picto_from_name "calendar" %}
<em>{% if event.end_day %}Cet événement dure du {% else %}Cet événement a lieu le{% endif %}

View File

@ -21,7 +21,7 @@
</h3>
</hgroup>
{% endif %}
{% if event|need_complete_display:false %}<p>
{% if event|need_complete_display:False %}<p>
{% picto_from_name "calendar" %}
<em>{% if event.end_day %}Cet événement dure du {% else %}Cet événement a lieu le{% endif %}

View File

@ -21,7 +21,7 @@ def can_show_start_time(event):
@register.filter
def need_complete_display(event, display_full):
def need_complete_display(event, display_full=True):
return event.end_day and event.end_day != event.start_day and (event.start_time or event.end_time or display_full)