From 371164a188b93b24f33cb5badb0362ac2544d33d Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 23 Mar 2020 06:21:25 +0100 Subject: Use generic page template for bookmark and lazy chat lists. Change-Id: I86cc78c8164d6672d8b5cfbc2a3433954068967e --- .../resources/templates/benki/posts/postList.html | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/main/resources/templates/benki/posts/postList.html (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 new file mode 100644 index 0000000..b68f796 --- /dev/null +++ b/src/main/resources/templates/benki/posts/postList.html @@ -0,0 +1,85 @@ +{@java.util.List posts} +{@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} + +{#include base.html} + +{#title}Benki {pageTitle}{/title} +{#siteSection}{pageTitle}{/siteSection} + +{#nav}{#navbar siteSection=pageTitle /}{/nav} + +{#head} + + + + + +{/head} + +{#body} + +{#if showBookmarkForm} + +

+
+ +
+
+{/if} + +
+ {#if hasPreviousPage}⇠ previous page{/if} + + {#if hasNextPage}next page ⇢{/if} +
+ +
+ {#for post in posts} + {#with post} + {#if post.isBookmark} +
+
+

{title}

+
+ + {owner.firstName} {owner.lastName} +
+
+ +
+ {descriptionHtml.raw} +
+
+ {#else} +
+
+
+ + {owner.firstName} {owner.lastName} +
+
+ +
+ {contentHtml.raw} +
+
+ {/if} + {/with} + {/for} +
+ +
+ {#if hasPreviousPage}⇠ previous page{/if} + + {#if hasNextPage}next page ⇢{/if} +
+ +{/body} + +{/include} -- cgit v1.2.3