# HG changeset patch # User Goffi # Date 1623002036 -7200 # Node ID 3db3509cbad1d8d1a339fd4f35a2c5f0cb44233f # Parent 0c9f8bd0fc2061ca38b762e9c4558f57caaa5adb bulma: fix items/pagination ordering in various places following ordering fix in Libervia/SàT Pubsub diff -r 0c9f8bd0fc20 -r 3db3509cbad1 sat_templates/templates/bulma/blog/articles.html --- 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 @@ {% endif %} -{{ navigation.prev_next(_("newer articles"), _("older articles")) }} +{{ navigation.prev_next(_("older articles"), _("newer articles")) }} {% endblock body %} diff -r 0c9f8bd0fc20 -r 3db3509cbad1 sat_templates/templates/bulma/blog/macros.html --- 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 %} diff -r 0c9f8bd0fc20 -r 3db3509cbad1 sat_templates/templates/bulma/event/overview.html --- 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 @@ - {% call(part, interest) block.interests_grid(events, 'calendar') %} + {% call(part, interest) block.interests_grid(events|reverse, 'calendar') %} {% if part == "header-title" %} diff -r 0c9f8bd0fc20 -r 3db3509cbad1 sat_templates/templates/bulma/forum/view.html --- 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 @@ -{{ navigation.prev_next(_("newer articles"), _("older articles")) }} +{{ navigation.prev_next(_("older articles"), _("newer articles")) }} {% endblock body %} diff -r 0c9f8bd0fc20 -r 3db3509cbad1 sat_templates/templates/bulma/forum/view_topics.html --- 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 @@
- {% for topic in topics %} + {% for topic in topics|reverse %}
{{ avatar.avatar(topic.author) }} diff -r 0c9f8bd0fc20 -r 3db3509cbad1 sat_templates/templates/bulma/input/navigation.html --- 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")) %}