Mercurial > libervia-templates
changeset 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 | 6895500a42d6 |
children | 6a26c8a43d10 |
files | sat_templates/templates/bulma/forum/view.html sat_templates/templates/bulma/forum/view_topics.html |
diffstat | 2 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/forum/view.html Sat May 01 18:46:51 2021 +0200 +++ b/sat_templates/templates/bulma/forum/view.html Sat May 01 18:47:35 2021 +0200 @@ -8,7 +8,7 @@ {% block body %} -<section class="section"> +<section class="section has-background-white"> {{ blog.show_items(blog_items["items"], expanded=true) }} </section>
--- a/sat_templates/templates/bulma/forum/view_topics.html Sat May 01 18:46:51 2021 +0200 +++ b/sat_templates/templates/bulma/forum/view_topics.html Sat May 01 18:47:35 2021 +0200 @@ -19,7 +19,14 @@ </div> {% endif %} - <section class="section"> + <section class="section has-background-white"> + <nav class="level mb-4"> + <div class="level-left"> + <div class="level-item"> + {{ component.action_button(url_topic_new, _("New Topic")) }} + </div> + </div> + </nav> <div class="has-background-white px-1 py-1"> {% for topic in topics %} <div class="media has-items-vcentered"> @@ -37,13 +44,6 @@ {% endfor %} </div> </section> - {% if profile %} - <section class="section"> - {% call textbox.textbox(service, node, placeholder=_("Your message"), submit_label=_("Create topic"), type="new_topic") %} - {{ field.text("title", placeholder=_("Your topic"), required=True) }} - {% endcall %} - </section> - {% endif %} {{ navigation.prev_next(_("older topics"), _("newer topics")) }} {% endblock body %}