blob: 41907abfd5f646ca64a41294d2482cc99f8e5d15 [file] [log] [blame]
Matthias Andreas Benkard14e59442022-05-24 22:19:29 +02001{@java.lang.Integer postId}
Matthias Andreas Benkard0351a8f2022-05-26 08:05:00 +02002{@java.util.List<eu.mulk.mulkcms2.benki.lazychat.LazychatMessage> comments}
Matthias Andreas Benkard14e59442022-05-24 22:19:29 +02003
Matthias Andreas Benkard8dcc6ae2022-06-04 16:02:25 +02004<div class="comment-box" id="comment-box-{postId}">
Matthias Andreas Benkard14e59442022-05-24 22:19:29 +02005 <script type="module" src="/lib.js"></script>
6 <script type="module" src="/posts/commentBox.js"></script>
7
8 <hr/>
9
10 <form class="comment-form pure-form" method="post" action="/posts/{postId}/comments">
11 <fieldset>
12 <legend>Post Comment</legend>
13
Matthias Andreas Benkard14e59442022-05-24 22:19:29 +020014 <label for="comment-form-message-{postId}">Message</label>
15 <textarea name="message" id="comment-form-message-{postId}" placeholder="Great article!" required></textarea>
16
17 <input name="hashcash-salt" id="comment-form-hashcash-salt-{postId}" type="hidden"/>
18
19 <div class="controls">
20 <input type="submit" class="pure-button"/>
21 </div>
22 </fieldset>
23 </form>
Matthias Andreas Benkard0351a8f2022-05-26 08:05:00 +020024
25 {#for comment in comments}
26 <div class="comment" id="comment-{comment.id}">
Matthias Andreas Benkard0351a8f2022-05-26 08:05:00 +020027 <div class="comment-info">
Matthias Andreas Benkardbee26772022-06-04 21:16:44 +020028 {#if comment.owner != null}<span class="comment-owner post-owner">{comment.owner.firstName}</span>{/if}
29
Matthias Andreas Benkard0351a8f2022-05-26 08:05:00 +020030 <a class="comment-link" href="/posts/{postId}#comment-{comment.id}">
31 <span class="comment-self-link">#</span>
32 </a>
33 </div>
34
35 <div class="comment-content post-content">
36 {comment.descriptionHtml.raw}
37 </div>
38 </div>
39 {/for}
Matthias Andreas Benkard14e59442022-05-24 22:19:29 +020040</div>