summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-06-05 16:27:10 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-06-06 09:41:52 +0200
commitf435e6610289cd298c9e5e5c22f30479a3ef646a (patch)
tree6ebafe9e69b2cb355de1d0e946984a31f49d532a
parent8e885426b538674286675d2566ad057cc83bcab7 (diff)
Upgrade to Quarkus 2.9.2.Final.
Change-Id: I9cf42af869056b7c944c891d6dc008a640c82edc
-rw-r--r--pom.xml2
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java4
-rw-r--r--src/main/resources/templates/PostResource/postList.html13
3 files changed, 16 insertions, 3 deletions
diff --git a/pom.xml b/pom.xml
index b4ed900..ec33271 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<enforcer-plugin.version>3.0.0</enforcer-plugin.version>
<processor-plugin.version>4.2</processor-plugin.version>
- <quarkus.version>2.9.0.Final</quarkus.version>
+ <quarkus.version>2.9.2.Final</quarkus.version>
<resources-plugin.version>3.2.0</resources-plugin.version>
<spotless-plugin.version>2.19.0</spotless-plugin.version>
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
index 1870709..07a9f2f 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
@@ -106,8 +106,8 @@ public abstract class PostResource {
@CheckedTemplate
static class Templates {
- public static native TemplateInstance postList(
- List<Post.Day<Post<? extends PostText<?>>>> postDays,
+ public static native <P extends Post<?>> TemplateInstance postList(
+ List<Post.Day<P>> postDays,
@CheckForNull String feedUri,
String pageTitle,
Boolean showBookmarkForm,
diff --git a/src/main/resources/templates/PostResource/postList.html b/src/main/resources/templates/PostResource/postList.html
index 8c66e1d..89267a2 100644
--- a/src/main/resources/templates/PostResource/postList.html
+++ b/src/main/resources/templates/PostResource/postList.html
@@ -1,3 +1,16 @@
+{@java.util.List<eu.mulk.mulkcms2.benki.posts.Post$Day<eu.mulk.mulkcms2.benki.posts.Post<?>>> postDays}
+{@java.lang.String feedUri}
+{@java.lang.String pageTitle}
+{@boolean showBookmarkForm}
+{@boolean showLazychatForm}
+{@boolean showCommentBox}
+{@boolean hasPreviousPage}
+{@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}