annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
129
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% extends 'base/base.html' %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 {% import 'input/form.html' as form with context %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'input/field.html' as field with context %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
4
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% block body %}
194
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
6 {{ icon_defs('file-image') }}
129
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
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>
194
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
8 {% if interests is defined %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
9 <p class="message--note">
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
10 {% trans nb_interests=interests|length%}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
11 You have currently {{nb_interests}} album in your personal list
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
12 {% pluralize %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
13 You have currently {{nb_interests}} albums in your personal list
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
14 {% endtrans %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
15 </p>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
16 <ul class="grid grid--center">
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
17 {% for interest in interests %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
18 <li class='grid__item grid__item--medium grid__item--selectable'>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
19 <a href="{{interest.url}}">
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
20 {% if interest.thumb_url %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
21 <img class="img--small" src="{{interest.thumb_url}}">
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
22 {% else %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
23 <div>{{ icon('file-image', cls='icon--medium') }}</div>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
24 {% endif %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
25 <span><em>{{ interest.name|default(_("unnamed album")) }}</em></span>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
26 </a>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
27 </li>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
28 {% endfor %}
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
29 </ul>
9b2646188b7a photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents: 164
diff changeset
30 {% endif %}
155
954759f0e8fa css: styles improvments + following a bit more BEM conventions
Goffi <goffi@goffi.org>
parents: 147
diff changeset
31 {% call form.form(class="form--single") %}
129
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 {{ field.text("jid", _("device full jid"), required=true)}}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 {{ field.submit(_("Access")) }}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 {% endcall %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
35 {% endblock body %}