Mercurial > libervia-templates
changeset 284:671085989f2f
bulma (photo/item): display delete icon when user is album owner and no affiliation is set
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Aug 2020 08:46:53 +0200 |
parents | a50075db625c |
children | 2ed424742e72 |
files | sat_templates/templates/bulma/photo/item.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/photo/item.html Tue Aug 25 08:45:35 2020 +0200 +++ b/sat_templates/templates/bulma/photo/item.html Tue Aug 25 08:46:53 2020 +0200 @@ -19,7 +19,7 @@ <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> <div class="level"> <div class="level-left"> - {% if file.affiliation == 'owner' %} + {% if file.affiliation == "owner" or not file.affiliation and directory_affiliation == "owner" %} <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> {{ icon('trash-empty', cls='icon is-small') }} </div>