From 227d4fa2466f2bdd2f85f1445a45e58babfc8a58 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 12 Oct 2021 23:26:54 +0200 Subject: [PATCH] Show event date rather than publication date --- photologue_custom/templates/photologue/gallery_detail.html | 2 +- .../templates/photologue/includes/gallery_sample.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/photologue_custom/templates/photologue/gallery_detail.html b/photologue_custom/templates/photologue/gallery_detail.html index 03415cb..61b3727 100644 --- a/photologue_custom/templates/photologue/gallery_detail.html +++ b/photologue_custom/templates/photologue/gallery_detail.html @@ -22,7 +22,7 @@ {% block content %}

{{ gallery.title }}

-

{% trans "Published" %} {{ gallery.date_added|date }}

+{% if gallery.extended.date_start %}

{{ gallery.extended.date_start }}{% if gallery.extended.date_end and gallery.extended.date_end != gallery.extended.date_start %} {% trans "to" %} {{ gallery.extended.date_end }}{% endif %}

{% endif %} {% if gallery.extended.tags.all %}

Tags : {% for tag in gallery.extended.tags.all %} diff --git a/photologue_custom/templates/photologue/includes/gallery_sample.html b/photologue_custom/templates/photologue/includes/gallery_sample.html index 34d53a8..2b485d6 100644 --- a/photologue_custom/templates/photologue/includes/gallery_sample.html +++ b/photologue_custom/templates/photologue/includes/gallery_sample.html @@ -6,8 +6,8 @@ {% endfor %}

{{ gallery.title }}
-

{% trans "Published" %} {{ gallery.date_added|date }}

+ {% if gallery.extended.date_start %}

{{ gallery.extended.date_start }}{% if gallery.extended.date_end and gallery.extended.date_end != gallery.extended.date_start %} - {{ gallery.extended.date_end }}{% endif %}

{% endif %} {% if gallery.description %}

{{ gallery.description|safe }}

{% endif %}
- \ No newline at end of file +