From 1937e6a72594f98d1fa031d8220f10ccc798c2be Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 4 Jun 2022 09:06:31 +0200 Subject: KB66 Add comment notification email. Change-Id: I27feecfe2d4309397b116552856227eacb7e9600 --- .../PostResource/commentNotificationMail.txt | 9 ++ .../resources/templates/PostResource/postList.html | 137 +++++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 src/main/resources/templates/PostResource/commentNotificationMail.txt create mode 100644 src/main/resources/templates/PostResource/postList.html (limited to 'src/main/resources/templates/PostResource') diff --git a/src/main/resources/templates/PostResource/commentNotificationMail.txt b/src/main/resources/templates/PostResource/commentNotificationMail.txt new file mode 100644 index 0000000..a226106 --- /dev/null +++ b/src/main/resources/templates/PostResource/commentNotificationMail.txt @@ -0,0 +1,9 @@ +{@int postId} +{@eu.mulk.mulkcms2.benki.lazychat.LazychatMessage comment} +New Comment +=========== + +Link: +{#if comment.owner != null}Author: {comment.owner.firstName}{/if} + +{comment.text.content} diff --git a/src/main/resources/templates/PostResource/postList.html b/src/main/resources/templates/PostResource/postList.html new file mode 100644 index 0000000..2f932ec --- /dev/null +++ b/src/main/resources/templates/PostResource/postList.html @@ -0,0 +1,137 @@ +{#include base.html} + +{#title}Benki {pageTitle}{/title} +{#siteSection}{pageTitle}{/siteSection} + +{#nav}{#navbar siteSection=pageTitle /} + +{#head} + + + {#if showBookmarkForm || showLazychatForm} + + {/if} +{/head} + +{#body} + +{#if showBookmarkForm} + +

+
+ +
+
+{/if} + +{#if showLazychatForm} + +

+
+ +
+
+{/if} + +
+
+ + +
+ {#if hasPreviousPage}⇠ previous page{/if} + {#if hasNextPage}next page ⇢{/if} +
+ +
+ {#for day in postDays} +
+
+ +
+ + {#for post in day.posts} + {#if post.isBookmark} +
+
+ {#if showBookmarkForm} + + + + {/if} +
+ +
+
+ {post.owner.firstName} + + # + + + +

🔖 {post.title}

. +
+
+
+ +
+ {#if showBookmarkForm} + + {/if} +
+ +
+ {post.descriptionHtml.raw} +
+ + {#if showCommentBox} + {#commentBox postId=post.id comments=post.comments /} + {/if} +
+ {#else} +
+
+ {#if showLazychatForm} + + + + {/if} +
+ +
+
+ {post.owner.firstName} + + # + +
+
+ +
+ {#if showLazychatForm} + + {/if} +
+ +
+ {post.descriptionHtml.raw} +
+ + {#if showCommentBox} + {#commentBox postId=post.id comments=post.comments /} + {/if} +
+ {/if} + {/for} +
+ {/for} +
+ +
+ {#if hasPreviousPage}⇠ previous page{/if} + + {#if hasNextPage}next page ⇢{/if} +
+ +{/body} + +{/include} -- cgit v1.2.3