comparison 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
comparison
equal deleted inserted replaced
195:bca0aa66294a 196:03c8fd941c0c
1 {% extends 'base/base.html' %} 1 {% extends 'base/base.html' %}
2 {% import 'components/block.html' as block with context %}
2 {% import 'input/form.html' as form with context %} 3 {% import 'input/form.html' as form with context %}
3 {% import 'input/field.html' as field with context %} 4 {% import 'input/field.html' as field with context %}
4 5
5 {% block body %} 6 {% block body %}
6 {{ icon_defs('file-image') }} 7 {{ icon_defs('file-image') }}
11 You have currently {{nb_interests}} album in your personal list 12 You have currently {{nb_interests}} album in your personal list
12 {% pluralize %} 13 {% pluralize %}
13 You have currently {{nb_interests}} albums in your personal list 14 You have currently {{nb_interests}} albums in your personal list
14 {% endtrans %} 15 {% endtrans %}
15 </p> 16 </p>
16 <ul class="grid grid--center"> 17
17 {% for interest in interests %} 18 {{block.interests_grid(interests, 'file-image')}}
18 <li class='grid__item grid__item--medium grid__item--selectable'>
19 <a href="{{interest.url}}">
20 {% if interest.thumb_url %}
21 <img class="img--small" src="{{interest.thumb_url}}">
22 {% else %}
23 <div>{{ icon('file-image', cls='icon--medium') }}</div>
24 {% endif %}
25 <span><em>{{ interest.name|default(_("unnamed album")) }}</em></span>
26 </a>
27 </li>
28 {% endfor %}
29 </ul>
30 {% endif %} 19 {% endif %}
31 {% call form.form(class="form--single") %} 20 {% call form.form(class="form--single") %}
32 {{ field.text("jid", _("device full jid"), required=true)}} 21 {{ field.text("jid", _("device full jid"), required=true)}}
33 {{ field.submit(_("Access")) }} 22 {{ field.submit(_("Access")) }}
34 {% endcall %} 23 {% endcall %}