mirror of https://gitgud.io/fatchan/jschan.git
parent
2a2f00e606
commit
e631b6f026
2 changed files with 23 additions and 12 deletions
@ -1,14 +1,17 @@ |
|||||||
mixin post(board, post) |
mixin post(board, post) |
||||||
div(class='post-container '+(post.thread ? '' : 'op')) |
div(class='post-container '+(post.thread ? '' : 'op')) |
||||||
|
.post-info |
||||||
span #{post.subject} |
span #{post.subject} |
||||||
span , #{post.author} |
span #{post.author} |
||||||
span , #{post.date.toLocaleString()} |
span #{post.date.toLocaleString()} |
||||||
span , Post |
span Post |
||||||
if post.thread == null |
if post.thread == null |
||||||
a(href=`/${board._id}/thread/${post._id}`) ##{post._id} |
a(href=`/${board._id}/thread/${post._id}`) ##{post._id} |
||||||
else |
else |
||||||
a(href=`/${board._id}/thread/${post.thread}#${post._id}`) ##{post._id} |
a(href=`/${board._id}/thread/${post.thread}#${post._id}`) ##{post._id} |
||||||
if post.file |
if post.file |
||||||
|
.post-image |
||||||
a(href='/img/'+post.file) |
a(href='/img/'+post.file) |
||||||
img.post-image(src='/img/thumb-'+post.file) |
img(src='/img/thumb-'+post.file) |
||||||
|
.post-content |
||||||
p(style='white-space: pre-wrap;') #{post.content} |
p(style='white-space: pre-wrap;') #{post.content} |
||||||
|
Loading…
Reference in new issue