- {% get_current_language as LANGUAGE_CODE %}
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
{% cache cache_timeout place_lists user.is_authenticated %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html
index e8d358c..74bf724 100644
--- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html
@@ -35,7 +35,16 @@
{% if not no_location %}
{% endif %}
@@ -51,7 +60,14 @@
{% picto_from_name "calendar" %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html
index b5b6f7f..3b51df0 100644
--- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html
@@ -10,12 +10,29 @@
{% picto_from_name "calendar" %}
{% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %}
- {% include "agenda_culturel/date-times-inc.html" with event=event %}
+ {{ event.start_day|date|frdate }}
+ {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %}
+ {{ event.start_time }}
+ {% endif %}
+ {% if event.end_day and event.end_day != event.start_day %}
+ au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %}
+ {% endif %}
+ {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %}
{% if not no_location %}
{% if event.location or event.exact_location %}
{% picto_from_name "map-pin" %}
- {% include "agenda_culturel/event-location-inc.html" with event=event %}
+
+ {% if event.exact_location %}
+ {{ event.exact_location.name }}, {{ event.exact_location.city }}
+ {% else %}
+ {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %}
+ {{ event.location }}
+ {% else %}
+ {{ event.location }}
+ {% endif %}
+ {% endif %}
+
{% endif %}
{% endif %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html
index df86f53..3ade596 100644
--- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-unknown-place-list-inc.html
@@ -18,10 +18,27 @@
{{ event|picto_visibility:user.is_authenticated }}
{% picto_from_name "map-pin" %}
- {% include "agenda_culturel/event-location-inc.html" with event=event %}
+
+ {% if event.exact_location %}
+
{{ event.exact_location.name }}, {{ event.exact_location.city }}
+ {% else %}
+ {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %}
+
{{ event.location }}
+ {% else %}
+ {{ event.location }}
+ {% endif %}
+ {% endif %}
+
{% picto_from_name "calendar" %}
{% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %}
- {% include "agenda_culturel/date-times-inc.html" with event=event %}
+ {{ event.start_day|date|frdate }}
+ {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %}
+ {{ event.start_time }}
+ {% endif %}
+ {% if event.end_day and event.end_day != event.start_day %}
+ au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %}
+ {% endif %}
+ {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %}
{% if event.has_recurrences %}
{% picto_from_name "repeat" %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-modal-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-modal-inc.html
deleted file mode 100644
index 51dfbf2..0000000
--- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-modal-inc.html
+++ /dev/null
@@ -1,44 +0,0 @@
-{% load static %}
-{% load cat_extra %}
-{% load utils_extra %}
-{% load event_extra %}
-{% load tag_extra %}
-
-
-
-
- {{ event.category|small_cat_recurrent:event.has_recurrences }} {{ event|picto_status }} {{ event.title }} {{ event|picto_visibility:user.is_authenticated }}
-
-
- {% picto_from_name "map-pin" %}
- {% include "agenda_culturel/event-location-inc.html" with event=event nolink=1 %}
-
-
- {% picto_from_name "calendar" %}
- {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %}
- {% include "agenda_culturel/date-times-inc.html" with event=event %}
-
-
-
- {{ event.description |linebreaks }}
-
-
-
- {% for tag in event.sorted_tags %}
- {{ tag | tag_button }}
- {% endfor %}
-
-
-
-
-
diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html
index 905b3b2..bb6175f 100644
--- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html
@@ -13,11 +13,27 @@
{% picto_from_name "calendar" %}
{% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %}
- {% include "agenda_culturel/date-times-inc.html" with event=event %}
+ {{ event.start_day|date|frdate }}
+ {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %}
+ {{ event.start_time }}
+ {% endif %}
+ {% if event.end_day and event.end_day != event.start_day %}
+ au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %}
+ {% endif %}
+ {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %}
{% picto_from_name "map-pin" %}
- {% include "agenda_culturel/event-location-inc.html" with event=event %}
+
+ {% if event.exact_location %}
+ {{ event.exact_location.name }}, {{ event.exact_location.city }}
+ {% else %}
+ {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %}
+ {{ event.location }}
+ {% else %}
+ {{ event.location }}
+ {% endif %}
+ {% endif %}
{% with event.get_shown_organisers as organisers %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/tags.html b/src/agenda_culturel/templates/agenda_culturel/tags.html
index 5497560..851d832 100644
--- a/src/agenda_culturel/templates/agenda_culturel/tags.html
+++ b/src/agenda_culturel/templates/agenda_culturel/tags.html
@@ -16,7 +16,7 @@
{% block content %}
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
-{% cache cache_timeout alltags LANGUAGE_CODE %}
+{% cache cache_timeout alltags %}