Some last translations in thread.pug and improve the switch case for opengraph media tags

merge-requests/341/head
Thomas Lynch 1 year ago
parent 6ce923edfc
commit 94a5ae485a
  1. 15
      views/pages/thread.pug

@ -19,19 +19,18 @@ block head
- const maintype = file.mimetype.split('/')[0];
case maintype
when 'image'
meta(property='og:image', content=`/file/${file.filename}`)
when 'video'
meta(property='og:video', content=`/file/${file.filename}`)
when 'audio'
meta(property='og:audio', content=`/file/${file.filename}`)
meta(property=`og:${maintype}`, content=`/file/${file.filename}`)
- break
default
- break
block content
+boardheader(modview ? 'Mod View' : null)
+boardheader(modview ? __('Mod View') : null)
br
if thread.replyposts >= board.settings.replyLimit && !thread.cyclic && !modview
p.title.text-center ⊖ Thread has reached reply limit.
p.title.text-center #{__('⊖ Thread has reached reply limit.')}
else
include ../includes/postform.pug
br
@ -54,7 +53,7 @@ block content
- uids && post.userId && uids.add(post.userId)
+post(post)
if thread.replyposts >= board.settings.replyLimit && !thread.cyclic && !modview
p.title.text-center ⊖ Thread has reached reply limit.
p.title.text-center #{__('⊖ Thread has reached reply limit.')}
else
a.bottom-reply.no-decoration.post-button(href='#postform') [#{__('New Reply')}]
hr(size=1)
@ -73,8 +72,8 @@ block content
span #{__n('%s UIDs', uids.size)}
.jsonly#livetext
.dot#livecolor
| Connecting...
input.postform-style.ml-5.di#updatepostsbutton(type='button' value='Update')
| #{__('Connecting...')}
input.postform-style.ml-5.di#updatepostsbutton(type='button' value=__('Update'))
if modview
include ../includes/actionfooter_manage.pug
else

Loading…
Cancel
Save