aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-02 19:40:41 +0000
committerAkshay <[email protected]>2024-11-02 19:40:41 +0000
commit1633dd56a93059fe901c329f233d87c7801ee9dc (patch)
tree85aaf59a2c3852c64adf454ce0e27757d61e3bbe /src/views
parent0d0cfdd280379ea1799cd423ad15392d417fcfb7 (diff)
improve all round the board
- better external links - fix styles for code tags - fix link styles for titles - add relative time to post info
Diffstat (limited to 'src/views')
-rw-r--r--src/views/comments.pug6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/views/comments.pug b/src/views/comments.pug
index 9d02a01..8d5acf3 100644
--- a/src/views/comments.pug
+++ b/src/views/comments.pug
@@ -36,8 +36,8 @@ html
36 else if post.post_hint == 'hosted:video' 36 else if post.post_hint == 'hosted:video'
37 - var url = post.secure_media.reddit_video.dash_url 37 - var url = post.secure_media.reddit_video.dash_url
38 video(controls data-dashjs-player src=`${url}`).post-media 38 video(controls data-dashjs-player src=`${url}`).post-media
39 else if post.post_hint == "link" && post.thumbnail && post.thumbnail != "self" && post.thumbnail != "default" 39 else if !post.selftext
40 a(href=`${post.url}`) 40 a(href=post.url)
41 | #{post.url} 41 | #{post.url}
42 42
43 if post.selftext_html 43 if post.selftext_html
@@ -47,6 +47,8 @@ html
47 p 47 p
48 | #{fmtnum(post.ups)} ↑ 48 | #{fmtnum(post.ups)} ↑
49 | &nbsp;·&nbsp; by u/#{post.author} 49 | &nbsp;·&nbsp; by u/#{post.author}
50 | &nbsp;·&nbsp;
51 | #{timeDifference(Date.now(), post.created * 1000)}
50 52
51 hr 53 hr
52 54