|
|
@ -27,6 +27,14 @@ mixin catalogtile(post, index, overboard=false) |
|
|
|
if modview |
|
|
|
if modview |
|
|
|
a.left.ml-5.bold(href=`recent.html?postid=${post.postId}`) [+] |
|
|
|
a.left.ml-5.bold(href=`recent.html?postid=${post.postId}`) [+] |
|
|
|
include ../includes/posticons.pug |
|
|
|
include ../includes/posticons.pug |
|
|
|
|
|
|
|
if post.country && post.country.code |
|
|
|
|
|
|
|
if post.country.custom === true |
|
|
|
|
|
|
|
span(title=post.country.name) |
|
|
|
|
|
|
|
img.customflag(src=`/flag/${post.board}/${post.country.src}` alt=' ' loading='lazy') |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
span(class=`flag flag-${post.country.code.toLowerCase()}` title=post.country.name alt=post.country.name) |
|
|
|
|
|
|
|
| |
|
|
|
a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'} |
|
|
|
a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'} |
|
|
|
br |
|
|
|
br |
|
|
|
span(title='Replies') R: #{post.replyposts} |
|
|
|
span(title='Replies') R: #{post.replyposts} |
|
|
@ -36,18 +44,37 @@ mixin catalogtile(post, index, overboard=false) |
|
|
|
| / |
|
|
|
| / |
|
|
|
span(title='Page') P: #{Math.ceil(index/10)} |
|
|
|
span(title='Page') P: #{Math.ceil(index/10)} |
|
|
|
if post.files.length > 0 |
|
|
|
if post.files.length > 0 |
|
|
|
.post-file-src |
|
|
|
.col |
|
|
|
a(href=`${postURL}#${post.postId}`) |
|
|
|
.row.ct-r1 |
|
|
|
- const file = post.files[0] |
|
|
|
- const file = post.files[0] |
|
|
|
if post.spoiler || file.spoiler |
|
|
|
- const type = file.mimetype.split('/')[0] |
|
|
|
div.spoilerimg.catalog-thumb |
|
|
|
.post-file-src |
|
|
|
else if file.hasThumb |
|
|
|
a(href=`${postURL}#${post.postId}`) |
|
|
|
img.catalog-thumb(src=`/file/thumb/${file.hash}${file.thumbextension}` width=file.geometry.thumbwidth height=file.geometry.thumbheight loading='lazy') |
|
|
|
if post.spoiler || file.spoiler |
|
|
|
else if file.attachment |
|
|
|
div.spoilerimg.catalog-thumb |
|
|
|
div.attachmentimg.catalog-thumb(data-mimetype=file.mimetype) |
|
|
|
else if file.hasThumb |
|
|
|
else if file.mimetype.startsWith('audio') |
|
|
|
img.catalog-thumb(src=`/file/thumb/${file.hash}${file.thumbextension}` width=file.geometry.thumbwidth height=file.geometry.thumbheight loading='lazy') |
|
|
|
div.audioimg.catalog-thumb |
|
|
|
else if file.attachment |
|
|
|
else |
|
|
|
div.attachmentimg.catalog-thumb(data-mimetype=file.mimetype) |
|
|
|
img.catalog-thumb(src=`/file/${file.filename}` width=file.geometry.width height=file.geometry.height loading='lazy') |
|
|
|
else if type === 'audio' |
|
|
|
|
|
|
|
div.audioimg.catalog-thumb |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
img.catalog-thumb(src=`/file/${file.filename}` width=file.geometry.width height=file.geometry.height loading='lazy') |
|
|
|
|
|
|
|
if post.files.length > 1 |
|
|
|
|
|
|
|
.row.ct-r2.wrap |
|
|
|
|
|
|
|
each file, fileindex in post.files.slice(1) |
|
|
|
|
|
|
|
- const type = file.mimetype.split('/')[0] |
|
|
|
|
|
|
|
.post-file-src |
|
|
|
|
|
|
|
a(href=`${postURL}#${post.postId}`) |
|
|
|
|
|
|
|
if post.spoiler || file.spoiler |
|
|
|
|
|
|
|
div.spoilerimg.catalog-thumb.small |
|
|
|
|
|
|
|
else if file.hasThumb |
|
|
|
|
|
|
|
img.catalog-thumb.small(src=`/file/thumb/${file.hash}${file.thumbextension}` height=file.geometry.thumbheight width=file.geometry.thumbwidth loading='lazy') |
|
|
|
|
|
|
|
else if file.attachment |
|
|
|
|
|
|
|
div.attachmentimg.catalog-thumb.small(data-mimetype=file.mimetype) |
|
|
|
|
|
|
|
else if type === 'audio' |
|
|
|
|
|
|
|
div.audioimg.catalog-thumb.small |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
img.catalog-thumb.small(src=`/file/${file.filename}` height=file.geometry.height width=file.geometry.width loading='lazy') |
|
|
|
if post.message |
|
|
|
if post.message |
|
|
|
pre.no-m-p.post-message !{post.message} |
|
|
|
pre.no-m-p.post-message !{post.message} |
|
|
|