From b9ecde46e5ce5a9ee77d34da9a476e64bd000d7c Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 17 Dec 2023 15:21:10 +0100 Subject: [PATCH] =?UTF-8?q?On=20ajoute=20une=20l=C3=A9gende=20en=20pied=20?= =?UTF-8?q?de=20page=20Fix=20#51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/static/style.scss | 3 ++- .../templates/agenda_culturel/filter-inc.html | 2 +- .../templates/agenda_culturel/home.html | 14 -------------- .../templates/agenda_culturel/page-month.html | 4 ++++ .../templates/agenda_culturel/page-week.html | 4 ++++ src/agenda_culturel/templatetags/cat_extra.py | 14 ++++++++++---- src/agenda_culturel/templatetags/event_extra.py | 3 ++- src/agenda_culturel/views.py | 10 ++++++++-- 8 files changed, 31 insertions(+), 23 deletions(-) delete mode 100644 src/agenda_culturel/templates/agenda_culturel/home.html diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index 22c34e1..5020e0a 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -171,7 +171,7 @@ footer { overflow: auto; .grid { grid-template-columns: repeat(auto-fit, minmax(0%, 1fr)); - min-width: 1200px; + min-width: 1500px; } .grid.week-in-month { grid-template-columns: 2.5em repeat(auto-fit, minmax(0%, 1fr)); @@ -212,6 +212,7 @@ footer { article.day { margin: 0; padding: 0 0 0.3em 0; + min-height: 12em; } article.day>header { diff --git a/src/agenda_culturel/templates/agenda_culturel/filter-inc.html b/src/agenda_culturel/templates/agenda_culturel/filter-inc.html index ab165cf..837ba65 100644 --- a/src/agenda_culturel/templates/agenda_culturel/filter-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/filter-inc.html @@ -5,7 +5,7 @@
{% if filter.is_active %} - Filtres : + Filtre : {% for c in filter.get_categories %} {{ c | small_cat }} {% endfor %} diff --git a/src/agenda_culturel/templates/agenda_culturel/home.html b/src/agenda_culturel/templates/agenda_culturel/home.html deleted file mode 100644 index 213d7ed..0000000 --- a/src/agenda_culturel/templates/agenda_culturel/home.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "agenda_culturel/page_event.html" %} - -{% block title %}Accueil{% endblock %} - -{% block events %} -

Événements

- -{% endblock %} \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page-month.html b/src/agenda_culturel/templates/agenda_culturel/page-month.html index fd3b93e..e4e2439 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-month.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-month.html @@ -52,6 +52,10 @@ {% endfor %} +
+ Légende : {% show_legend filter=filter %} +
+