annotate sat_templates/templates/default/photo/discover.html @ 413:0190a0d32909 default tip

Forum: Major redesign of forums: Forums have been redesigned. They follow the new general design with 2 or 3 panels, allowing to have directly a forum if one is found/set up, and a panel on the left to search/discover other ones. Categories have been rewritten to be usable with pubsub relationships, a XEP-0277 type node is used for topics, and each item has a comments node for the threads. The thread view is set in `forum/show_messages.html` template. It has a header with a search box and a button to (un)subscribe. Items are displayed with the same macros as for the blog items. Below a room is set for editor, tags and attachments. rel 463
author Goffi <goffi@goffi.org>
date Fri, 05 Sep 2025 21:54:09 +0200
parents 03c8fd941c0c
children
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' %}
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
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'input/form.html' as form with context %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% import 'input/field.html' as field with context %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
5
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
21 {{ field.text("jid", _("device full jid"), required=true)}}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 {{ field.submit(_("Access")) }}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {% endcall %}
ca42dc037bbf file (discover): new discovery page:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 {% endblock body %}