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 |
extends ../layout.pug |
||||||
|
include ../mixins/post.pug |
||||||
|
|
||||||
block head |
block head |
||||||
title /#{board}/ |
title /#{board}/ |
||||||
|
|
||||||
block content |
block content |
||||||
|
hr |
||||||
for thread in threads |
for thread in threads |
||||||
h1 OP: |
h1 OP: |
||||||
div #{thread._id} |
+post(board, thread) |
||||||
div #{thread.author} |
|
||||||
div #{thread.date} |
|
||||||
div #{thread.content} |
|
||||||
h1 Replies: |
h1 Replies: |
||||||
for post in thread.replies |
for post in thread.replies |
||||||
div #{post._id} |
+post(board, post) |
||||||
div #{post.author} |
|
||||||
div #{post.date} |
|
||||||
div #{post.content} |
|
||||||
br |
|
||||||
hr |
hr |
||||||
|
@ -1,20 +1,13 @@ |
|||||||
extends ../layout.pug |
extends ../layout.pug |
||||||
|
include ../mixins/post.pug |
||||||
|
|
||||||
block head |
block head |
||||||
title /#{board}/ |
title /#{board}/ - title placeholder |
||||||
|
|
||||||
block content |
block content |
||||||
for thread in threads |
|
||||||
h1 OP: |
h1 OP: |
||||||
div #{thread._id} |
+post(board, thread) |
||||||
div #{thread.author} |
|
||||||
div #{thread.date} |
|
||||||
div #{thread.content} |
|
||||||
h1 Replies: |
h1 Replies: |
||||||
for post in thread.replies |
for post in thread.replies |
||||||
div #{post._id} |
+post(board, post) |
||||||
div #{post.author} |
|
||||||
div #{post.date} |
|
||||||
div #{post.content} |
|
||||||
br |
|
||||||
hr |
hr |
||||||
|
Loading…
Reference in new issue