From 1c2a8a70eed63a6b59dde22bdcb1d029e8485089 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 26 Apr 2020 06:09:57 +0200 Subject: KB54 Put posts in date buckets for templating. Change-Id: Ic17b2dede722f5962a55b9c4d3b4663a71480e9c --- .../resources/templates/benki/posts/postList.html | 138 +++++++++++---------- 1 file changed, 71 insertions(+), 67 deletions(-) (limited to 'src/main/resources/templates/benki/posts/postList.html') diff --git a/src/main/resources/templates/benki/posts/postList.html b/src/main/resources/templates/benki/posts/postList.html index bc479f4..2911be4 100644 --- a/src/main/resources/templates/benki/posts/postList.html +++ b/src/main/resources/templates/benki/posts/postList.html @@ -1,4 +1,4 @@ -{@java.util.List posts} +{@java.util.List postDays} {@java.lang.String pageTitle} {@java.lang.Boolean showBookmarkForm} {@java.lang.Boolean hasPreviousPage} @@ -52,72 +52,76 @@
- {#for post in posts} - {#with post} - {#if post.isBookmark} - - {#else} - - {/if} - {/with} + {#for day in postDays} +
+ {#for post in day.posts} + {#with post} + {#if post.isBookmark} + + {#else} + + {/if} + {/with} + {/for} +
{/for}
-- cgit v1.2.3