aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix4
-rw-r--r--src/mixins/comment.pug29
-rw-r--r--src/public/styles.css4
-rw-r--r--src/views/comments.pug6
4 files changed, 28 insertions, 15 deletions
diff --git a/flake.nix b/flake.nix
index 9663b81..759e670 100644
--- a/flake.nix
+++ b/flake.nix
@@ -80,8 +80,8 @@
80 80
81 copyToRoot = final.buildEnv { 81 copyToRoot = final.buildEnv {
82 name = "image-root"; 82 name = "image-root";
83 paths = [ final.lurker ]; 83 paths = [final.lurker];
84 pathsToLink = [ "/bin" ]; 84 pathsToLink = ["/bin"];
85 }; 85 };
86 86
87 runAsRoot = '' 87 runAsRoot = ''
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) {
diff --git a/src/public/styles.css b/src/public/styles.css
index 9bc346f..d401fc7 100644
--- a/src/public/styles.css
+++ b/src/public/styles.css
@@ -579,3 +579,7 @@ form input[type="submit"]:hover {
579a.nav-link { 579a.nav-link {
580 color: var(--text-color-muted); 580 color: var(--text-color-muted);
581} 581}
582
583.comment-info-container > p {
584 margin-top: 0px;
585}
diff --git a/src/views/comments.pug b/src/views/comments.pug
index bbd7855..8fde1ce 100644
--- a/src/views/comments.pug
+++ b/src/views/comments.pug
@@ -25,11 +25,17 @@ html
25 a(href=`/r/${post.subreddit}`) ← r/#{post.subreddit} 25 a(href=`/r/${post.subreddit}`) ← r/#{post.subreddit}
26 26
27 div.info-container 27 div.info-container
28 - var domain = (new URL(post.url)).hostname
28 p 29 p
29 | #{fmtnum(post.ups)} ↑ 30 | #{fmtnum(post.ups)} ↑
30 |  ·  by u/#{post.author} 31 |  ·  by u/#{post.author}
31 |  ·  32 |  · 
32 | #{timeDifference(Date.now(), post.created * 1000)} 33 | #{timeDifference(Date.now(), post.created * 1000)}
34 |  · 
35 if domain !== 'www.reddit.com'
36 a(href=`${post.url}`) submission url ↗
37 |  · 
38 a(href=`https://reddit.com${post.permalink}`) reddit ↗
33 39
34 h2.post-title 40 h2.post-title
35 != post.title 41 != post.title