Mercurial > libervia-templates
comparison sat_templates/templates/default/photo/discover.html @ 194:9b2646188b7a
photo/discover: show albums in "interests"
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 03 May 2019 13:09:50 +0200 |
parents | e9f0a4215e46 |
children | 03c8fd941c0c |
comparison
equal
deleted
inserted
replaced
193:f1188ce8dd17 | 194:9b2646188b7a |
---|---|
1 {% extends 'base/base.html' %} | 1 {% extends 'base/base.html' %} |
2 {% import 'input/form.html' as form with context %} | 2 {% import 'input/form.html' as form with context %} |
3 {% import 'input/field.html' as field with context %} | 3 {% import 'input/field.html' as field with context %} |
4 | 4 |
5 {% block body %} | 5 {% block body %} |
6 {{ icon_defs('file-image') }} | |
6 <p class="instructions--alt">{% trans %}Photo discovery is not implemented yet, however you can enter a jid below to find its albums{% endtrans %}</p> | 7 <p class="instructions--alt">{% trans %}Photo discovery is not implemented yet, however you can enter a jid below to find its albums{% endtrans %}</p> |
8 {% if interests is defined %} | |
9 <p class="message--note"> | |
10 {% trans nb_interests=interests|length%} | |
11 You have currently {{nb_interests}} album in your personal list | |
12 {% pluralize %} | |
13 You have currently {{nb_interests}} albums in your personal list | |
14 {% endtrans %} | |
15 </p> | |
16 <ul class="grid grid--center"> | |
17 {% for interest in interests %} | |
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 %} | |
7 {% call form.form(class="form--single") %} | 31 {% call form.form(class="form--single") %} |
8 {{ field.text("jid", _("device full jid"), required=true)}} | 32 {{ field.text("jid", _("device full jid"), required=true)}} |
9 {{ field.submit(_("Access")) }} | 33 {{ field.submit(_("Access")) }} |
10 {% endcall %} | 34 {% endcall %} |
11 {% endblock body %} | 35 {% endblock body %} |