aboutsummaryrefslogtreecommitdiff
path: root/src/mixins/comment.pug
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixins/comment.pug')
-rw-r--r--src/mixins/comment.pug29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/mixins/comment.pug b/src/mixins/comment.pug
index a7bf9d9..26b5918 100644
--- a/src/mixins/comment.pug
+++ b/src/mixins/comment.pug
@@ -2,21 +2,24 @@ include ../utils
2 2
3mixin infoContainer(data, next_id, prev_id) 3mixin infoContainer(data, next_id, prev_id)
4 div.comment-info-container 4 div.comment-info-container
5 | #{fmtnum(data.ups)} ↑ 5 p
6 | ·  6 | #{fmtnum(data.ups)} ↑
7 if next_id 7 | · 
8 a(href=`#${next_id}`).nav-link next 8 if next_id
9 a(href=`#${next_id}` title="scroll to next comment").nav-link next
10 |  · 
11 if prev_id
12 a(href=`#${prev_id}` title="scroll to previous comment").nav-link prev
13 |  · 
14 span(class=`${data.is_submitter ? 'op' : ''}`)
15 | u/#{data.author} #{data.is_submitter ? '(op)' : ''}
9 |  ·  16 |  · 
10 if prev_id 17 if data.collapsed_reason_code == "DELETED"
11 a(href=`#${prev_id}`).nav-link prev 18 a(href=`https://undelete.pullpush.io${data.permalink}`) search on undelete
19 |  · 
20 | #{timeDifference(Date.now(), data.created * 1000)}
12 |  ·  21 |  · 
13 span(class=`${data.is_submitter ? 'op' : ''}`) 22 a(href=`https://reddit.com${data.permalink}` title="view on reddit").nav-link open ↗
14 | u/#{data.author} #{data.is_submitter ? '(op)' : ''}
15 |  · 
16 if data.collapsed_reason_code == "DELETED"
17 a(href=`https://undelete.pullpush.io${data.permalink}`) search on undelete
18 |  · 
19 | #{timeDifference(Date.now(), data.created * 1000)}
20 23
21- 24-
22 function hasReplies(data) { 25 function hasReplies(data) {