blob: 40cec4a7e5b792db7c72a502a5c3d2b6e8d15ade [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
4<div class="comment-box">
5 <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}">
27 {#if comment.owner != null}<span class="comment-owner post-owner">{comment.owner.firstName}</span>{/if}
28
29 <div class="comment-info">
30 <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>