Matthias Andreas Benkard | 14e5944 | 2022-05-24 22:19:29 +0200 | [diff] [blame] | 1 | {@java.lang.Integer postId} |
Matthias Andreas Benkard | 0351a8f | 2022-05-26 08:05:00 +0200 | [diff] [blame] | 2 | {@java.util.List<eu.mulk.mulkcms2.benki.lazychat.LazychatMessage> comments} |
Matthias Andreas Benkard | 14e5944 | 2022-05-24 22:19:29 +0200 | [diff] [blame] | 3 | |
Matthias Andreas Benkard | 8dcc6ae | 2022-06-04 16:02:25 +0200 | [diff] [blame^] | 4 | <div class="comment-box" id="comment-box-{postId}"> |
Matthias Andreas Benkard | 14e5944 | 2022-05-24 22:19:29 +0200 | [diff] [blame] | 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 Benkard | 14e5944 | 2022-05-24 22:19:29 +0200 | [diff] [blame] | 14 | <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 Benkard | 0351a8f | 2022-05-26 08:05:00 +0200 | [diff] [blame] | 24 | |
| 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 Benkard | 14e5944 | 2022-05-24 22:19:29 +0200 | [diff] [blame] | 40 | </div> |