Mercurial > libervia-templates
changeset 287:7670752665e0
bulma (photo/album): added a `cover` button to change album cover
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 05 Sep 2020 22:01:07 +0200 |
parents | f8026bf77a4c |
children | 9731b71ffa53 |
files | sat_templates/templates/bulma/photo/album.html sat_templates/templates/bulma/photo/item.html |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/photo/album.html Tue Aug 25 08:49:32 2020 +0200 +++ b/sat_templates/templates/bulma/photo/album.html Sat Sep 05 22:01:07 2020 +0200 @@ -6,7 +6,7 @@ {% import 'blog/macros.html' as blog with context %} {% block body %} -{{ icon_defs('comment-empty', 'trash-empty') }} +{{ icon_defs('comment-empty', 'trash-empty', 'picture') }} {% if directory_affiliation == 'owner' %} <div class="content has-items-centered is-flex my-4">
--- a/sat_templates/templates/bulma/photo/item.html Tue Aug 25 08:49:32 2020 +0200 +++ b/sat_templates/templates/bulma/photo/item.html Sat Sep 05 22:01:07 2020 +0200 @@ -24,6 +24,11 @@ {{ icon('trash-empty', cls='icon is-small') }} </div> {% endif %} + {% if directory_affiliation == "owner" %} + <div class="level-item is-size-7 x-is-hoverable-primary action_cover"> + {{ icon('picture', cls='icon is-small') }} + </div> + {% endif %} </div> <div class="level-right"> <div class="level-item is-size-7">