mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
933 B
24 lines
933 B
mixin catalogtile(board, post, index)
|
|
article(class='catalog-tile')
|
|
- const postURL = `/${board._id}/thread/${post.postId}.html#${post.postId}`
|
|
header.post-info
|
|
include ../includes/postmods.pug
|
|
a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'} #{'#'+post.postId}
|
|
| -
|
|
span(title='Replies') R: #{post.replyposts}
|
|
| /
|
|
span(title='Files') F: #{post.replyfiles}
|
|
| /
|
|
span(title='Page') P: #{Math.ceil(index/10)}
|
|
if post.files.length > 0
|
|
.post-file-src
|
|
a(href=postURL)
|
|
if post.spoiler
|
|
img.catalog-thumb(src='/img/spoiler.png' width='64' height='64')
|
|
else
|
|
if post.files[0].hasThumb
|
|
img.catalog-thumb(src=`/img/thumb-${post.files[0].filename.split('.')[0]}.jpg` width='64' height='64')
|
|
else
|
|
img.catalog-thumb(src=`/img/${post.files[0].filename}` width='64' height='64')
|
|
if post.message
|
|
pre.no-m-p.post-message !{post.message}
|
|
|