Mercurial > libervia-templates
annotate sat_templates/templates/default/forum/view_topics.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 | e9f0a4215e46 |
| children |
| rev | line source |
|---|---|
| 120 | 1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
| 2 {% import 'input/field.html' as field with context%} | |
| 3 {% import 'input/textbox.html' as textbox with context %} | |
| 4 {% import 'input/navigation.html' as navigation with context %} | |
| 5 {% import 'components/avatar.html' as avatar with context %} | |
| 6 | |
| 7 {% block body %} | |
| 8 | |
| 9 {% if not topics %} | |
|
128
4f27ce980ced
css: started to refactor CSS class to follow BEM conventions
Goffi <goffi@goffi.org>
parents:
120
diff
changeset
|
10 <div class="message--info"> |
| 120 | 11 {% trans %}There is not message yet in this forum.{% endtrans %} |
| 12 {% if profile %} | |
| 13 {% trans %}You can start a topic of interest by filling this form.{% endtrans %} | |
| 14 {% else %} | |
| 15 {% trans %}You can login to create a new topic.{% endtrans %} | |
| 16 {% endif %} | |
| 17 </div> | |
| 18 {% endif %} | |
| 19 {% if profile %} | |
| 133 | 20 <div class="forum__topic_create"> |
| 120 | 21 {% call textbox.textbox(service, node, placeholder=_("Your message"), submit_label=_("Create topic"), type="new_topic") %} |
| 22 {{ field.text("title", placeholder=_("Your topic (try to be short and explicit)"), required=True) }} | |
| 23 {% endcall %} | |
| 24 </div> | |
| 25 {% endif %} | |
| 26 | |
| 133 | 27 <div class="forum__topics"> |
| 120 | 28 {% for topic in topics %} |
| 29 <div> | |
| 30 <a href="{{topic.http_uri}}"> | |
| 31 {{ avatar.avatar(topic.author) }} | |
| 32 {{topic.title}} | |
| 33 </a> | |
| 34 </div> | |
| 35 {% endfor %} | |
| 36 </div> | |
| 37 | |
| 38 {{ navigation.prev_next(_("older topics"), _("newer topics")) }} | |
| 39 {% endblock body %} |
