feat: display comment upvotes

This commit is contained in:
httpjamesm
2022-12-30 18:11:59 -05:00
parent 89d8dee958
commit d49c0f2ffd
5 changed files with 30 additions and 3 deletions

View File

@ -6,8 +6,13 @@
{{ range $comment := .Comments }}
<div class="comment-parent">
<div class="comment">
<div class="comment-body">
{{ $comment.Text }}
<div class="comment-top">
<div class="comment-score" title="Comment Upvotes">
{{ $comment.Upvotes }}
</div>
<div class="comment-body">
{{ $comment.Text }}
</div>
</div>
<div class="comment-author">
Commented {{ $comment.Timestamp }} by

View File

@ -21,7 +21,7 @@
alt="4 circles with alternating colors between green and white"
/>
</a>
{{ template "themeSwitcher.html" .}}
{{ template "themeSwitcher.html" . }}
</div>
<div class="card">
<div class="card-header">