diff sat_templates/templates/bulma/photo/item.html @ 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 671085989f2f
children
line wrap: on
line diff
--- 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">