Small tweak to attachmentimg, add data-mimetype so customcsss can be set on them for thumbnail image

merge-requests/208/head
Thomas Lynch 4 years ago
parent 79f359caee
commit db5e8b7da4
  1. 2
      views/mixins/catalogtile.pug
  2. 2
      views/mixins/post.pug

@ -31,7 +31,7 @@ mixin catalogtile(board, post, index)
else if file.hasThumb
img.catalog-thumb(src=`/file/thumb-${file.hash}${file.thumbextension}` width=file.geometry.thumbwidth height=file.geometry.thumbheight loading='lazy')
else if file.attachment
div.attachmentimg.catalog-thumb
div.attachmentimg.catalog-thumb(data-mimetype=file.mimetype)
else if file.mimetype.startsWith('audio')
div.audioimg.catalog-thumb
else

@ -86,7 +86,7 @@ mixin post(post, truncate, manage=false, globalmanage=false, ban=false)
else if file.hasThumb
img.file-thumb(src=`/file/thumb-${file.hash}${file.thumbextension}` height=file.geometry.thumbheight width=file.geometry.thumbwidth loading='lazy')
else if file.attachment
div.attachmentimg.file-thumb
div.attachmentimg.file-thumb(data-mimetype=file.mimetype)
else if type === 'audio'
div.audioimg.file-thumb
else

Loading…
Cancel
Save