diff options
| author | Alexander Kavon <me+git@alexkavon.com> | 2024-01-23 06:33:20 -0500 |
|---|---|---|
| committer | Alexander Kavon <me+git@alexkavon.com> | 2024-01-23 06:33:20 -0500 |
| commit | 8d92bdf7da95e1085485c0e60b9dac19c246e235 (patch) | |
| tree | 5c346f8bdb10b3b8084a3b9e95c727f7fa3914be /src/ui/templates/comments.tmpl.html | |
| parent | 8510c36ded85740885e67b59ee2ec2360986c0a9 (diff) | |
move ui templates into src, update conf to handle other paths, export User Insert Hooks
Diffstat (limited to 'src/ui/templates/comments.tmpl.html')
| -rw-r--r-- | src/ui/templates/comments.tmpl.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ui/templates/comments.tmpl.html b/src/ui/templates/comments.tmpl.html new file mode 100644 index 0000000..b069bbd --- /dev/null +++ b/src/ui/templates/comments.tmpl.html @@ -0,0 +1,16 @@ +{{define "comments"}} +<div id="post-comments"> + {{range $comment := .comments }} + <span class="comment-author">by <a href="/u/{{$comment.username}}">{{$comment.username}}</a></span> + <span class="comment-created-at">{{$comment.created_at}}</span> + <span class="actions"> + <span class="action-flag">Flag</span> + <span class="action-hide">Hide</span> + <span class="action-reply">Reply</span> + </span> + <div class="c-alert c-alert--info" role="alert"> + {{ $comment.body }} + </div> + {{ end }} +</div> +{{end}} |
