Mercurial > libervia-templates
comparison sat_templates/templates/bulma/photo/item.html @ 257:1a68c078a233
bulma (photo/item): only show delete icon if user is owner of the item
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 17:01:31 +0200 |
parents | a0e889d73bad |
children | a50075db625c |
comparison
equal
deleted
inserted
replaced
256:2ee4a91f615b | 257:1a68c078a233 |
---|---|
6 </a> | 6 </a> |
7 </div> | 7 </div> |
8 <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> | 8 <div class="card-content" onclick="clicked_mh_fix('{{'comments_panel'|next_gidx}}')"> |
9 <div class="level"> | 9 <div class="level"> |
10 <div class="level-left"> | 10 <div class="level-left"> |
11 <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> | 11 {% if file.affiliation == 'owner' %} |
12 {{ icon('trash-empty', cls='icon is-small') }} | 12 <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> |
13 </div> | 13 {{ icon('trash-empty', cls='icon is-small') }} |
14 </div> | |
15 {% endif %} | |
14 </div> | 16 </div> |
15 <div class="level-right"> | 17 <div class="level-right"> |
16 <div class="level-item is-size-7"> | 18 <div class="level-item is-size-7"> |
17 {% if file.comments_url is defined %} | 19 {% if file.comments_url is defined %} |
18 {% if file.comments_count %} | 20 {% if file.comments_count %} |