Mercurial > libervia-templates
changeset 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 | caadb06854a0 |
children | 23180988ee6b |
files | sat_templates/templates/bulma/photo/album.html |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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 %}