From d45724b7741feb0f6540790dad1a96f394652d1f Mon Sep 17 00:00:00 2001 From: reverend Date: Wed, 26 Aug 2020 21:59:21 +0200 Subject: [PATCH] Will show x for deleting when allowed --- .../photo_album/photo_album_create.html | 4 ++-- .../templates/place/place_detail.html | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/lostplaces/lostplaces_app/templates/photo_album/photo_album_create.html b/lostplaces/lostplaces_app/templates/photo_album/photo_album_create.html index b6e84ba..883c980 100644 --- a/lostplaces/lostplaces_app/templates/photo_album/photo_album_create.html +++ b/lostplaces/lostplaces_app/templates/photo_album/photo_album_create.html @@ -28,10 +28,10 @@
- +
diff --git a/lostplaces/lostplaces_app/templates/place/place_detail.html b/lostplaces/lostplaces_app/templates/place/place_detail.html index 5eac4be..1d50416 100644 --- a/lostplaces/lostplaces_app/templates/place/place_detail.html +++ b/lostplaces/lostplaces_app/templates/place/place_detail.html @@ -58,6 +58,23 @@ {{photo_album.label}} + {% if user == photo_album.submitted_by or user == place.submitted_by %} + +
+ + + + + + + +
+
+ {% endif %} {% endfor %}