diff sat_templates/templates/bulma/list/view_grocery.html @ 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 27511c821481
children
line wrap: on
line diff
--- 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}}"