From 49b01519bbfcd4219ce77ff9ef7497d4ab1458e0 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 5 Jul 2021 06:45:54 +0200 Subject: KB66 Use type-safe templates everywhere. Change-Id: I879e76e5bbaf91349f6df4637d9dc15291a3ada1 --- .../resources/templates/benki/posts/postList.html | 138 ++++++++++----------- 1 file changed, 63 insertions(+), 75 deletions(-) (limited to 'src/main/resources/templates/benki/posts') diff --git a/src/main/resources/templates/benki/posts/postList.html b/src/main/resources/templates/benki/posts/postList.html index 7039d65..7198af1 100644 --- a/src/main/resources/templates/benki/posts/postList.html +++ b/src/main/resources/templates/benki/posts/postList.html @@ -1,13 +1,3 @@ -{@java.util.List.Day> postDays} -{@java.lang.String pageTitle} -{@java.lang.Boolean showBookmarkForm} -{@java.lang.Boolean hasPreviousPage} -{@java.lang.Boolean hasNextPage} -{@java.lang.Integer previousCursor} -{@java.lang.Integer nextCursor} -{@java.lang.Integer pageSize} -{@java.lang.String searchQuery} - {#include base.html} {#title}Benki {pageTitle}{/title} @@ -60,73 +50,71 @@ {#for post in day.posts} - {#with post} - {#if post.isBookmark} -
-
- {#if showBookmarkForm} - - - - {/if} -
- -
-
- {owner.firstName} - - # - - - -

🔖 {title}

. -
-
-
- -
- {#if showBookmarkForm} - - {/if} + {#if post.isBookmark} + - {#else} -
-
- {#if showLazychatForm} - - - - {/if} -
- -
-
- {owner.firstName} - - # - -
-
- -
- {#if showLazychatForm} - - {/if} + + +
+ {#if showBookmarkForm} + + {/if} +
+ +
+ {post.descriptionHtml.raw} +
+ +
+
+ {#else} +
+
+ {#if showLazychatForm} + + + + {/if} +
+ +
+
+ {post.owner.firstName} + + # +
- -
- {contentHtml.raw} -
-
- {/if} - {/with} + + +
+ {#if showLazychatForm} + + {/if} +
+ +
+ {post.descriptionHtml.raw} +
+
+ {/if} {/for} {/for} -- cgit v1.2.3