aboutsummaryrefslogtreecommitdiff
path: root/src/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixins')
-rw-r--r--src/mixins/comment.pug4
-rw-r--r--src/mixins/post.pug4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mixins/comment.pug b/src/mixins/comment.pug
index ffd4b5a..5b6f097 100644
--- a/src/mixins/comment.pug
+++ b/src/mixins/comment.pug
@@ -12,6 +12,10 @@ mixin infoContainer(data, next_id, prev_id)
12 if prev_id 12 if prev_id
13 a(href=`#${prev_id}` title="scroll to previous comment").nav-link prev 13 a(href=`#${prev_id}` title="scroll to previous comment").nav-link prev
14 |  ·  14 |  · 
15 if data.gilded > 0
16 span.gilded
17 | #{data.gilded} ☆
18 |  · 
15 span(class=`${data.is_submitter ? 'op' : ''}`) 19 span(class=`${data.is_submitter ? 'op' : ''}`)
16 | u/#{data.author} #{hats.length==0?'':`(${hats.join('|')})`} 20 | u/#{data.author} #{hats.length==0?'':`(${hats.join('|')})`}
17 |  ·  21 |  · 
diff --git a/src/mixins/post.pug b/src/mixins/post.pug
index b44ae6d..722a353 100644
--- a/src/mixins/post.pug
+++ b/src/mixins/post.pug
@@ -12,6 +12,10 @@ mixin post(p, currentUrl)
12 div.info-container 12 div.info-container
13 p 13 p
14 | #{fmtnum(p.ups)} ↑ 14 | #{fmtnum(p.ups)} ↑
15 if p.gilded > 0
16 |  · 
17 span.gilded
18 | #{p.gilded} ☆
15 span.post-author 19 span.post-author
16 |  ·  20 |  · 
17 | u/#{p.author} 21 | u/#{p.author}