1include ../mixins/comment
2include ../mixins/header
3include ../mixins/head
4include ../utils
5
6doctype html
7html
8 +head("more comments")
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, index in comments
20 - var next_idx = index + 1
21 - var prev_idx = index - 1
22 - var next_com = next_idx < total ? comments[next_idx] : null
23 - var prev_com = prev_idx >= 0 ? comments[prev_idx] : null
24 - var next_id = next_com ? next_com.data.id : null
25 - var prev_id = prev_com ? prev_com.data.id : null
26 +comment(comment, true, parent_id, next_idx, prev_idx)
27