From 8dcc6ae4ee418cdfdc60c76709ad03b4814fb83a Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 4 Jun 2022 16:02:25 +0200 Subject: KB66 Add comment count to post header. Change-Id: I98fd99327fdfebaddfebe3541e6b1ccb1d78fe3c --- src/main/resources/templates/PostResource/postList.html | 10 ++++++++++ src/main/resources/templates/tags/commentBox.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/main/resources/templates') diff --git a/src/main/resources/templates/PostResource/postList.html b/src/main/resources/templates/PostResource/postList.html index 2f932ec..8c66e1d 100644 --- a/src/main/resources/templates/PostResource/postList.html +++ b/src/main/resources/templates/PostResource/postList.html @@ -66,6 +66,11 @@ # + {#if post.comments.size() > 0} + + ({post.comments.size()}) + + {/if}

🔖 {post.title}

. @@ -103,6 +108,11 @@
# + {#if post.comments.size() > 0} + + ({post.comments.size()}) + + {/if} diff --git a/src/main/resources/templates/tags/commentBox.html b/src/main/resources/templates/tags/commentBox.html index 40cec4a..abe73f5 100644 --- a/src/main/resources/templates/tags/commentBox.html +++ b/src/main/resources/templates/tags/commentBox.html @@ -1,7 +1,7 @@ {@java.lang.Integer postId} {@java.util.List comments} -
+
-- cgit v1.2.3