aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/comments.pug9
-rw-r--r--src/views/single_comment_thread.pug21
2 files changed, 25 insertions, 5 deletions
diff --git a/src/views/comments.pug b/src/views/comments.pug
index bfb0e35..a7dd396 100644
--- a/src/views/comments.pug
+++ b/src/views/comments.pug
@@ -49,17 +49,16 @@ html
49 else if post.post_hint == 'hosted:video' 49 else if post.post_hint == 'hosted:video'
50 - var url = post.secure_media.reddit_video.dash_url 50 - var url = post.secure_media.reddit_video.dash_url
51 video(controls data-dashjs-player src=`${url}`).post-media 51 video(controls data-dashjs-player src=`${url}`).post-media
52 else if !post.selftext 52 else if post.post_hint == "link"
53 a(href=post.url) 53 a(href=post.url)
54 | #{post.url} 54 | #{post.url}
55 55
56 if post.selftext_html 56 if post.selftext_html
57 p.self-text !{post.selftext_html} 57 div.self-text
58 != post.selftext_html
58 59
59 hr 60 hr
60 61
61 div.comments-container 62 div.comments-container
62 each child in comments 63 each child in comments
63 +comment(child, true) 64 +comment(child, true, post.id)
64
65 script(src='https://unpkg.com/[email protected]')
diff --git a/src/views/single_comment_thread.pug b/src/views/single_comment_thread.pug
new file mode 100644
index 0000000..cd652e6
--- /dev/null
+++ b/src/views/single_comment_thread.pug
@@ -0,0 +1,21 @@
1include ../mixins/comment
2include ../mixins/header
3include ../mixins/head
4include ../utils
5
6doctype html
7html
8 +head()
9 body
10 main#content
11 +header()
12 div.comments-container
13 a(href=`/comments/${parent_id}`)
14 | ← back to parent thread
15 if comments.length == 0
16 div
17 p nothing to see here, this thread was shadow-banned?
18 else
19 each comment in comments
20 +comment(comment, true, parent_id)
21