Mercurial > libervia-templates
comparison sat_templates/templates/bulma/photo/album.html @ 261:b680ce7ba004
bulma (photo/album): added `manage invitations` button if user is owner of the album
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 17:01:31 +0200 |
parents | 5e51ce9376ed |
children | a2b4793c92a9 |
comparison
equal
deleted
inserted
replaced
260:caadb06854a0 | 261:b680ce7ba004 |
---|---|
5 {% import 'input/textbox.html' as textbox with context %} | 5 {% import 'input/textbox.html' as textbox with context %} |
6 {% import 'blog/macros.html' as blog with context %} | 6 {% import 'blog/macros.html' as blog with context %} |
7 | 7 |
8 {% block body %} | 8 {% block body %} |
9 {{ icon_defs('comment-empty', 'trash-empty') }} | 9 {{ icon_defs('comment-empty', 'trash-empty') }} |
10 | |
11 {% if directory_affiliation == 'owner' %} | |
12 <div class="content has-items-centered is-flex my-4"> | |
13 {{ component.action_button("#", label=_("manage invitations"), icon="group", id="button_manage") }} | |
14 </div> | |
15 {% endif %} | |
10 <div id="album_items" class="columns album is-multiline mt-4"> | 16 <div id="album_items" class="columns album is-multiline mt-4"> |
11 {% set ns_photos = namespace(empty=true) %} | 17 {% set ns_photos = namespace(empty=true) %} |
12 {% for file in files_data %} | 18 {% for file in files_data %} |
13 {% if file.type == C.FILE_TYPE_FILE %} | 19 {% if file.type == C.FILE_TYPE_FILE %} |
14 {% set ns_photos.empty = false %} | 20 {% set ns_photos.empty = false %} |