From b3c85f15e520eda676500f7d4886b477b2bd633e Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 13 Oct 2021 15:52:03 +0200 Subject: [PATCH] Add gallery management link --- .../templates/photologue/gallery_detail.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/photologue_custom/templates/photologue/gallery_detail.html b/photologue_custom/templates/photologue/gallery_detail.html index 8c8692d..d15fa41 100644 --- a/photologue_custom/templates/photologue/gallery_detail.html +++ b/photologue_custom/templates/photologue/gallery_detail.html @@ -21,7 +21,17 @@ {% endblock %} {% block content %} -

{{ gallery.title }}

+

+ {{ gallery.title }} + {% if request.user.is_staff and perms.photologue.change_gallery %} + + + + + + + {% endif %} +

{% 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 %}