Mercurial > libervia-templates
annotate sat_templates/templates/bulma/forum/view_topics.html @ 340:0e388a8288ae
(bulma) list/item: set XMLUI classes on content
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Oct 2021 17:32:35 +0200 |
parents | 3db3509cbad1 |
children |
rev | line source |
---|---|
230 | 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 %} | |
10 <div class="message"> | |
11 <div class="message-body"> | |
12 {% trans %}There is not message yet in this forum.{% endtrans %} | |
13 {% if profile %} | |
14 {% trans %}You can start a topic of interest by filling this form.{% endtrans %} | |
15 {% else %} | |
16 {% trans %}You can login to create a new topic.{% endtrans %} | |
17 {% endif %} | |
18 </div> | |
19 </div> | |
20 {% endif %} | |
21 | |
328
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
22 <section class="section has-background-white"> |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
23 <nav class="level mb-4"> |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
24 <div class="level-left"> |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
25 <div class="level-item"> |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
26 {{ component.action_button(url_topic_new, _("New Topic")) }} |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
27 </div> |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
28 </div> |
bfb0d5829728
bulma (forum): slight design improvment + new `New Topic` button
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
29 </nav> |
246
1928ba66c194
bulma: replaced custom styles by new spacing helpers
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
30 <div class="has-background-white px-1 py-1"> |
332
3db3509cbad1
bulma: fix items/pagination ordering in various places following ordering fix in Libervia/SàT Pubsub
Goffi <goffi@goffi.org>
parents:
328
diff
changeset
|
31 {% for topic in topics|reverse %} |
230 | 32 <div class="media has-items-vcentered"> |
33 <div class="media-left"> | |
34 {{ avatar.avatar(topic.author) }} | |
35 </div> | |
36 <div class="media-content"> | |
37 <p class="is-size-5-desktop is-size-6-touch x-is-hoverable"> | |
38 <a href="{{topic.http_uri}}"> | |
39 {{topic.title}} | |
40 </a> | |
41 </p> | |
42 </div> | |
43 </div> | |
44 {% endfor %} | |
45 </div> | |
46 </section> | |
47 | |
48 {{ navigation.prev_next(_("older topics"), _("newer topics")) }} | |
49 {% endblock body %} |