From b52c834a2c75a7cd0b5cbee262e7ed33491fa246 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 19 May 2016 17:05:57 -0700 Subject: [PATCH] Make sorting consistent on smaller devices Unfortunately using the batch_meetings() function causes the content to become unsorted on smaller devices. This could be seen on phones or if making the windows size small on a desktop browser. Instead of using batch_meetings() use the column-count CSS property. This allows the index list to switch from 1 to 4 columns based on the page width Change-Id: Iebae34488412cc35ca3c9f38a43897d30d20d8db --- meetingindex.jinja | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/meetingindex.jinja b/meetingindex.jinja index a2e15df1..2431fb5e 100644 --- a/meetingindex.jinja +++ b/meetingindex.jinja @@ -7,6 +7,20 @@ OpenStack IRC meetings @@ -33,16 +47,12 @@ use in your favorite calendaring app:

Meeting details

-
- {% for column in batch_meetings(meetings, 4)|batch(4) %} -
- {% for meeting in column %} - - {% endfor %} -
+
+