Mercurial > libervia-templates
diff sat_templates/templates/default/photo/discover.html @ 196:03c8fd941c0c
event, photo, components: moved interests grid in a macro (in components/block)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 03 May 2019 23:56:11 +0200 |
parents | 9b2646188b7a |
children |
line wrap: on
line diff
--- a/sat_templates/templates/default/photo/discover.html Fri May 03 20:55:49 2019 +0200 +++ b/sat_templates/templates/default/photo/discover.html Fri May 03 23:56:11 2019 +0200 @@ -1,4 +1,5 @@ {% extends 'base/base.html' %} +{% import 'components/block.html' as block with context %} {% import 'input/form.html' as form with context %} {% import 'input/field.html' as field with context %} @@ -13,20 +14,8 @@ You have currently {{nb_interests}} albums in your personal list {% endtrans %} </p> - <ul class="grid grid--center"> - {% for interest in interests %} - <li class='grid__item grid__item--medium grid__item--selectable'> - <a href="{{interest.url}}"> - {% if interest.thumb_url %} - <img class="img--small" src="{{interest.thumb_url}}"> - {% else %} - <div>{{ icon('file-image', cls='icon--medium') }}</div> - {% endif %} - <span><em>{{ interest.name|default(_("unnamed album")) }}</em></span> - </a> - </li> - {% endfor %} - </ul> + + {{block.interests_grid(interests, 'file-image')}} {% endif %} {% call form.form(class="form--single") %} {{ field.text("jid", _("device full jid"), required=true)}}