changeset 332:3db3509cbad1

bulma: fix items/pagination ordering in various places following ordering fix in Libervia/SàT Pubsub
author Goffi <goffi@goffi.org>
date Sun, 06 Jun 2021 19:53:56 +0200
parents 0c9f8bd0fc20
children 8fdedadcf297
files sat_templates/templates/bulma/blog/articles.html sat_templates/templates/bulma/blog/macros.html sat_templates/templates/bulma/event/overview.html sat_templates/templates/bulma/forum/view.html sat_templates/templates/bulma/forum/view_topics.html sat_templates/templates/bulma/input/navigation.html sat_templates/templates/bulma/list/view_generic.html sat_templates/templates/bulma/list/view_grocery.html
diffstat 8 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/blog/articles.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/blog/articles.html	Sun Jun 06 19:53:56 2021 +0200
@@ -47,5 +47,5 @@
     </div>
 {% endif %}
 
-{{ navigation.prev_next(_("newer articles"), _("older articles")) }}
+{{ navigation.prev_next(_("older articles"), _("newer articles")) }}
 {% endblock body %}
--- a/sat_templates/templates/bulma/blog/macros.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/blog/macros.html	Sun Jun 06 19:53:56 2021 +0200
@@ -11,7 +11,7 @@
     {% if dates_format is undefined %}
         {% set dates_format = dates_fmt or 'short' %}
     {% endif %}
-    {% for item in items %}
+    {% for item in items|reverse %}
         {% include 'blog/item.html' %}
     {% endfor %}
 {% endmacro %}
--- a/sat_templates/templates/bulma/event/overview.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/event/overview.html	Sun Jun 06 19:53:56 2021 +0200
@@ -34,7 +34,7 @@
             </div>
         </div>
 
-        {% call(part, interest) block.interests_grid(events, 'calendar') %}
+        {% call(part, interest) block.interests_grid(events|reverse, 'calendar') %}
             {% if part == "header-title" %}
                 <a href="{{interest.url}}">
                     <span class="tag is-medium is-rounded {{ 'is-light' if interest.date is in_the_past else 'is-info' }}">
--- a/sat_templates/templates/bulma/forum/view.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/forum/view.html	Sun Jun 06 19:53:56 2021 +0200
@@ -17,5 +17,5 @@
 </section>
 
 
-{{ navigation.prev_next(_("newer articles"), _("older articles")) }}
+{{ navigation.prev_next(_("older articles"), _("newer articles")) }}
 {% endblock body %}
--- a/sat_templates/templates/bulma/forum/view_topics.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/forum/view_topics.html	Sun Jun 06 19:53:56 2021 +0200
@@ -28,7 +28,7 @@
             </div>
         </nav>
         <div class="has-background-white px-1 py-1">
-            {% for topic in topics %}
+            {% for topic in topics|reverse %}
                 <div class="media has-items-vcentered">
                     <div class="media-left">
                         {{ avatar.avatar(topic.author) }}
--- a/sat_templates/templates/bulma/input/navigation.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/input/navigation.html	Sun Jun 06 19:53:56 2021 +0200
@@ -1,4 +1,4 @@
-{% macro prev_next(prev_label=_("newer"), next_label=_("older")) %}
+{% macro prev_next(prev_label=_("older"), next_label=_("newer")) %}
 <section class="section">
     <nav class="pagination is-rounded" role="navigation" aria-label="pagination">
         {% if previous_page_url is defined %}
--- a/sat_templates/templates/bulma/list/view_generic.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/list/view_generic.html	Sun Jun 06 19:53:56 2021 +0200
@@ -1,6 +1,6 @@
 <div id="list" class="container has-background-white px-1 py-1">
     {{ xmlui.generate_list(
-          list_items,
+          list_items|reverse,
           (
               ('title', _('Title')),
               ('labels', _('Labels')),
--- a/sat_templates/templates/bulma/list/view_grocery.html	Fri Jun 04 18:36:57 2021 +0200
+++ b/sat_templates/templates/bulma/list/view_grocery.html	Sun Jun 06 19:53:56 2021 +0200
@@ -2,7 +2,7 @@
 {% import 'input/field.html' as field with context %}
 
 <div id="list" class="container has-background-white px-1 py-1">
-    {% for item in list_items %}
+    {% for item in list_items|reverse %}
         {% set is_bought = item.widget_value.status == 'bought' %}
         <div class="item box has-background-light has-text-weight-medium
                       {{'list-item-closed' if is_bought}}"