Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/photo/album.html Sat Aug 01 17:01:31 2020 +0200 +++ b/sat_templates/templates/bulma/photo/album.html Sat Aug 01 17:01:31 2020 +0200 @@ -7,6 +7,12 @@ {% block body %} {{ icon_defs('comment-empty', 'trash-empty') }} + +{% if directory_affiliation == 'owner' %} + <div class="content has-items-centered is-flex my-4"> + {{ component.action_button("#", label=_("manage invitations"), icon="group", id="button_manage") }} + </div> +{% endif %} <div id="album_items" class="columns album is-multiline mt-4"> {% set ns_photos = namespace(empty=true) %} {% for file in files_data %}