mirror of https://gitgud.io/fatchan/jschan.git
parent
b113210b47
commit
8c858ba018
5 changed files with 24 additions and 24 deletions
@ -0,0 +1,9 @@ |
||||
mixin post(board, post) |
||||
.post-container |
||||
if post.thread == null |
||||
a(href=`/${board}/thread/${post._id}`) #{post._id} |
||||
else |
||||
a(href=`/${board}/thread/${post.thread}#${post._id}`) #{post._id} |
||||
span , #{post.author} |
||||
span , #{post.date} |
||||
p #{post.content} |
@ -1,20 +1,15 @@ |
||||
extends ../layout.pug |
||||
include ../mixins/post.pug |
||||
|
||||
block head |
||||
title /#{board}/ |
||||
|
||||
block content |
||||
hr |
||||
for thread in threads |
||||
h1 OP: |
||||
div #{thread._id} |
||||
div #{thread.author} |
||||
div #{thread.date} |
||||
div #{thread.content} |
||||
+post(board, thread) |
||||
h1 Replies: |
||||
for post in thread.replies |
||||
div #{post._id} |
||||
div #{post.author} |
||||
div #{post.date} |
||||
div #{post.content} |
||||
br |
||||
+post(board, post) |
||||
hr |
||||
|
@ -1,20 +1,13 @@ |
||||
extends ../layout.pug |
||||
include ../mixins/post.pug |
||||
|
||||
block head |
||||
title /#{board}/ |
||||
title /#{board}/ - title placeholder |
||||
|
||||
block content |
||||
for thread in threads |
||||
h1 OP: |
||||
div #{thread._id} |
||||
div #{thread.author} |
||||
div #{thread.date} |
||||
div #{thread.content} |
||||
+post(board, thread) |
||||
h1 Replies: |
||||
for post in thread.replies |
||||
div #{post._id} |
||||
div #{post.author} |
||||
div #{post.date} |
||||
div #{post.content} |
||||
br |
||||
+post(board, post) |
||||
hr |
||||
|
Loading…
Reference in new issue