Mercurial > libervia-templates
diff sat_templates/templates/bulma/components/block.html @ 245:10278ba367a2
bulma (photo/discover): design for the new theme + create button + delete button
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 17:57:13 +0200 |
parents | 0e69b5843c2f |
children | 75f1cd6da46e |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/components/block.html Fri Jun 19 17:57:13 2020 +0200 +++ b/sat_templates/templates/bulma/components/block.html Fri Jun 19 17:57:13 2020 +0200 @@ -50,10 +50,14 @@ #} <div class="columns is-multiline"> {% for interest in interests %} - <div class="column is-4"> - <div class="card x-is-hoverable"> - <a href="{{interest.url}}"> - <div class="card-image is-photo-thumbnail-container is-flex has-items-centered has-background-light"> + <div class="column is-4 item" data-item='{{interest|tojson}}'> + <div class="card"> + <div class="card-header"> + <div class="card-header-title"></div> + <div class="card-header-icon"><button class="delete action_delete"></button></div> + </div> + <div class="card-image is-photo-thumbnail-container is-flex has-items-centered has-background-light"> + <a href="{{interest.url}}"> {% if interest.thumb_url %} <img class="is-photo-thumbnail" src="{{interest.thumb_url}}"> {% else %} @@ -61,11 +65,13 @@ {{ icon(default_icon_name, "image is-128x128") }} </div> {% endif %} - </div> - <div class="card-content has-text-centered"> + </a> + </div> + <div class="card-content has-text-centered x-is-hoverable"> + <a href="{{interest.url}}"> <span><em>{{ interest.name|default(_("unnamed")) }}</em></span> - </div> - </a> + </a> + </div> </div> </div> {% endfor %}