Mercurial > libervia-templates
comparison sat_templates/templates/bulma/photo/item.html @ 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 | 7670752665e0 |
comparison
equal
deleted
inserted
replaced
283:a50075db625c | 284:671085989f2f |
---|---|
17 {% endif %} | 17 {% endif %} |
18 </div> | 18 </div> |
19 <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> | 19 <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> |
20 <div class="level"> | 20 <div class="level"> |
21 <div class="level-left"> | 21 <div class="level-left"> |
22 {% if file.affiliation == 'owner' %} | 22 {% if file.affiliation == "owner" or not file.affiliation and directory_affiliation == "owner" %} |
23 <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> | 23 <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> |
24 {{ icon('trash-empty', cls='icon is-small') }} | 24 {{ icon('trash-empty', cls='icon is-small') }} |
25 </div> | 25 </div> |
26 {% endif %} | 26 {% endif %} |
27 </div> | 27 </div> |