# HG changeset patch # User Goffi # Date 1596294091 -7200 # Node ID 1a68c078a2332e5cbe08039562958a17f7f97390 # Parent 2ee4a91f615b4c3926f182614a986a7e0f12e503 bulma (photo/item): only show delete icon if user is owner of the item diff -r 2ee4a91f615b -r 1a68c078a233 sat_templates/templates/bulma/photo/item.html --- a/sat_templates/templates/bulma/photo/item.html Sat Aug 01 17:01:31 2020 +0200 +++ b/sat_templates/templates/bulma/photo/item.html Sat Aug 01 17:01:31 2020 +0200 @@ -8,9 +8,11 @@
-
- {{ icon('trash-empty', cls='icon is-small') }} -
+ {% if file.affiliation == 'owner' %} +
+ {{ icon('trash-empty', cls='icon is-small') }} +
+ {% endif %}