diff options
Diffstat (limited to 'src/views/single_comment_thread.pug')
-rw-r--r-- | src/views/single_comment_thread.pug | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ | |||
1 | include ../mixins/comment | ||
2 | include ../mixins/header | ||
3 | include ../mixins/head | ||
4 | include ../utils | ||
5 | |||
6 | doctype html | ||
7 | html | ||
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 | |||