comparison sat_templates/templates/bulma/forum/view_topics.html @ 328:bfb0d5829728

bulma (forum): slight design improvment + new `New Topic` button
author Goffi <goffi@goffi.org>
date Sat, 01 May 2021 18:47:35 +0200
parents 1928ba66c194
children 3db3509cbad1
comparison
equal deleted inserted replaced
327:6895500a42d6 328:bfb0d5829728
17 {% endif %} 17 {% endif %}
18 </div> 18 </div>
19 </div> 19 </div>
20 {% endif %} 20 {% endif %}
21 21
22 <section class="section"> 22 <section class="section has-background-white">
23 <nav class="level mb-4">
24 <div class="level-left">
25 <div class="level-item">
26 {{ component.action_button(url_topic_new, _("New Topic")) }}
27 </div>
28 </div>
29 </nav>
23 <div class="has-background-white px-1 py-1"> 30 <div class="has-background-white px-1 py-1">
24 {% for topic in topics %} 31 {% for topic in topics %}
25 <div class="media has-items-vcentered"> 32 <div class="media has-items-vcentered">
26 <div class="media-left"> 33 <div class="media-left">
27 {{ avatar.avatar(topic.author) }} 34 {{ avatar.avatar(topic.author) }}
35 </div> 42 </div>
36 </div> 43 </div>
37 {% endfor %} 44 {% endfor %}
38 </div> 45 </div>
39 </section> 46 </section>
40 {% if profile %}
41 <section class="section">
42 {% call textbox.textbox(service, node, placeholder=_("Your message"), submit_label=_("Create topic"), type="new_topic") %}
43 {{ field.text("title", placeholder=_("Your topic"), required=True) }}
44 {% endcall %}
45 </section>
46 {% endif %}
47 47
48 {{ navigation.prev_next(_("older topics"), _("newer topics")) }} 48 {{ navigation.prev_next(_("older topics"), _("newer topics")) }}
49 {% endblock body %} 49 {% endblock body %}