Mercurial > libervia-templates
annotate sat_templates/templates/default/photo/discover.html @ 230:0e69b5843c2f
theme: bulma theme first draft:
This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and
Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming
conventions, and default fallbacks would lead to hard to debug conflicts.
`common.js` has been slightly improved to handle custom classed in `tab_select`
The theme is not complete yet, but it is functional.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 19 May 2020 00:02:34 +0200 |
parents | 03c8fd941c0c |
children |
rev | line source |
---|---|
129 | 1 {% extends 'base/base.html' %} |
196
03c8fd941c0c
event, photo, components: moved interests grid in a macro (in components/block)
Goffi <goffi@goffi.org>
parents:
194
diff
changeset
|
2 {% import 'components/block.html' as block with context %} |
129 | 3 {% import 'input/form.html' as form with context %} |
4 {% import 'input/field.html' as field with context %} | |
5 | |
6 {% block body %} | |
194
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
7 {{ icon_defs('file-image') }} |
129 | 8 <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
|
9 {% if interests is defined %} |
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
10 <p class="message--note"> |
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
11 {% trans nb_interests=interests|length%} |
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
12 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
|
13 {% pluralize %} |
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
14 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
|
15 {% endtrans %} |
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
16 </p> |
196
03c8fd941c0c
event, photo, components: moved interests grid in a macro (in components/block)
Goffi <goffi@goffi.org>
parents:
194
diff
changeset
|
17 |
03c8fd941c0c
event, photo, components: moved interests grid in a macro (in components/block)
Goffi <goffi@goffi.org>
parents:
194
diff
changeset
|
18 {{block.interests_grid(interests, 'file-image')}} |
194
9b2646188b7a
photo/discover: show albums in "interests"
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
19 {% endif %} |
155
954759f0e8fa
css: styles improvments + following a bit more BEM conventions
Goffi <goffi@goffi.org>
parents:
147
diff
changeset
|
20 {% call form.form(class="form--single") %} |
129 | 21 {{ field.text("jid", _("device full jid"), required=true)}} |
22 {{ field.submit(_("Access")) }} | |
23 {% endcall %} | |
24 {% endblock body %} |