aboutsummaryrefslogtreecommitdiff
path: root/ui/templates/comments.tmpl.html
diff options
context:
space:
mode:
Diffstat (limited to 'ui/templates/comments.tmpl.html')
-rw-r--r--ui/templates/comments.tmpl.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/templates/comments.tmpl.html b/ui/templates/comments.tmpl.html
new file mode 100644
index 0000000..560e918
--- /dev/null
+++ b/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 | relative_time}}</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}}