@ -47,11 +47,11 @@ mixin post(post, truncate, manage=false, globalmanage=false, ban=false)
span: a(href='/img/'+file.filename title='Download '+file.originalFilename download=file.originalFilename) #{post.spoiler ? 'Spoiler File' : file.originalFilename}
br
span
| (#{file.mimetype.split('/')[0]}, #{file. sizeString}, #{file.geometryString}
| (#{file.sizeString}, #{file.geometryString}
if file.durationString
| , #{file.durationString}
| )
.post-file-src
.post-file-src(data-type=file.mimetype.split('/')[0])
a(target='_blank' href=`/img/${file.filename}`)
if post.spoiler
img.file-thumb(src='/img/spoiler.png' width='128' height='128')
@ -76,18 +76,24 @@ mixin post(post, truncate, manage=false, globalmanage=false, ban=false)
else
pre.post-message !{post.message}
if !post.message && post.files.length === 0
p Post file( s) unlinked
p Post files unlinked
if post.banmessage
p.banmessage USER BANNED FOR THIS POST (#{post.banmessage || 'No reason specified'})
if post.omittedposts || post.omittedimages
p #{post.omittedposts} post(s)#{post.omittedimages > 0 ? ' and '+post.omittedimages+' image(s)' : ''} omitted. #[a(href=`${postURL}#${post.postId}`) View the full thread]
p.banmessage USER BANNED FOR THIS POST #{post.banmessage ? `(${post.banmessage})` : ''}
if post.omittedposts || post.omittedfiles
p
- const ompo = post.omittedposts;
- const omfi = post.omittedfiles;
| #{ompo} post#{ompo > 1 ? 's' : ''}
| #{omfi > 0 ? ` and ${omfi} image${omfi > 1 ? 's' : ''}` : ''} omitted.
| #[a(href=`${postURL}#${post.postId}`) View the full thread]
if post.previewbacklinks && post.previewbacklinks.length > 0
.replies Replies:
each backlink in post.previewbacklinks
a.quote(href=`/${post.board}/thread/${post.thread || post.postId}.html#${backlink.postId}`) >>#{backlink.postId}
|
if post.previewbacklinks.length < post.backlinks.length
| + #{post.backlinks.length-post.previewbacklinks.length} reply link(s) omitted
- const ombls = post.backlinks.length-post.previewbacklinks.length;
| + #{ombls} reply link#{ombls > 1 ? 's' : ''} omitted
else if post.backlinks && post.backlinks.length > 0
.replies Replies:
each backlink in post.backlinks