Finish up the rest of the pages

merge-requests/341/head
Thomas Lynch 1 year ago
parent 8202ad5f07
commit 6ce923edfc
  1. 19
      locales/en.json
  2. 20
      locales/pt.json
  3. 2
      views/pages/message.pug
  4. 16
      views/pages/modlog.pug
  5. 10
      views/pages/modloglist.pug
  6. 10
      views/pages/mypermissions.pug
  7. 6
      views/pages/news.pug
  8. 10
      views/pages/overboard.pug
  9. 10
      views/pages/overboardcatalog.pug
  10. 18
      views/pages/register.pug
  11. 14
      views/pages/sessions.pug

@ -91,9 +91,11 @@
"Access to board assets and custompages. Ability to upload, create, edit, delete.": "Access to board assets and custompages. Ability to upload, create, edit, delete.",
"Access to staff management, and ability to add or remove permissions from others. Can only be given by somebody else with \"Board Owner\" permission. Use with caution!": "Access to staff management, and ability to add or remove permissions from others. Can only be given by somebody else with \"Board Owner\" permission. Use with caution!",
"Account": "Account",
"Account permissions": "Account permissions",
"Accounts": "Accounts",
"Actions": "Actions",
"Active sessions": "Active sessions",
"Active Sessions": "Active Sessions",
"Add": "Add",
"Add Asset (Max %s)": {
"one": "Add Asset (Max %s)",
@ -175,15 +177,18 @@
"Canvas width in pixels": "Canvas width in pixels",
"Captcha text": "Captcha text",
"Catalog": "Catalog",
"Catalog View": "Catalog View",
"Change password": "Change password",
"Change Password": "Change Password",
"Clear": "Clear",
"Click here if you are not redirected automatically.": "Click here if you are not redirected automatically.",
"Close": "Close",
"Code Block": "Code Block",
"Code theme": "Code theme",
"Color": "Color",
"comma separated": "comma separated",
"Confirm New Password": "Confirm New Password",
"Confirm Password": "Confirm Password",
"Connected for live posts": "Connected for live posts",
"Connected for live posts (%sms)": "Connected for live posts (%sms)",
"Connecting...": "Connecting...",
@ -203,6 +208,7 @@
"Customisation": "Customisation",
"Customise": "Customise",
"Cyclic": "Cyclic",
"Date": "Date",
"Date Added": "Date Added",
"Default name": "Default name",
"Delete": "Delete",
@ -254,7 +260,9 @@
"Error connecting": "Error connecting",
"Error reconnecting": "Error reconnecting",
"Europe": "Tor Exit Node",
"Events": "Events",
"Existing Password": "Existing Password",
"Expires": "Expires",
"Expiry": "Expiry",
"Export": "Export",
"Export does not include post password or (You)'s": "Export does not include post password or (You)'s",
@ -320,6 +328,7 @@
"Import/Export Settings": "Import/Export Settings",
"Include Default Boards": "Include Default Boards",
"Index": "Index",
"Index View": "Index View",
"Inline Monospace": "Inline Monospace",
"Internal server error": "Internal server error",
"Invalid dimensions.": "Invalid dimensions.",
@ -350,6 +359,7 @@
"Log out": "Log out",
"Login": "Login",
"Logs": "Logs",
"Logs for %s": "Logs for %s",
"Lokinet SNApp": "Lokinet SNApp",
"Loop audio/video": "Loop audio/video",
"Make links clickable": "Make links clickable",
@ -375,6 +385,7 @@
"Move down": "Move down",
"Move up": "Move up",
"My permissions": "My permissions",
"My Permissions": "My Permissions",
"Name": "Name",
"Narrow": "Narrow",
"Narrow Range": "Narrow Range",
@ -391,6 +402,7 @@
"No camera? Use this secret in your authenticator app instead": "No camera? Use this secret in your authenticator app instead",
"No Filters": "No Filters",
"No Logs.": "No Logs.",
"No news.": "No news.",
"No posts.": "No posts.",
"No reports.": "No reports.",
"No results.": "No results.",
@ -413,6 +425,8 @@
"Or, apply a role": "Or, apply a role",
"Order": "Order",
"Overboard": "Overboard",
"Overboard Catalog": "Overboard Catalog",
"Overboard Index": "Overboard Index",
"Own Boards": "Own Boards",
"Owner": "Owner",
"Page": "Page",
@ -449,6 +463,7 @@
"Reason": "Reason",
"Recent": "w",
"Recent Posts": "Recept Posts",
"Recently bumped threads from multiple boards": "Recently bumped threads from multiple boards",
"Recording replay": "Recording replay",
"Recursive post hide": "Recursive post hide",
"Redo": "Redo",
@ -488,6 +503,7 @@
"one": "Select/Drop/Paste file",
"other": "Select/Drop/Paste files"
},
"Sessions": "Sessions",
"Settings": "Settings",
"Setup 2FA": "Setup 2FA",
"Setup 2FA (TOTP)": "Setup 2FA (TOTP)",
@ -584,6 +600,9 @@
"You": "You",
"You moderate": "You moderate",
"You own": "You own",
"You will be redirected shortly.": "You will be redirected shortly.",
"Your upload was too large": "Your upload was too large",
"⊖ Thread has reached reply limit.": "⊖ Thread has reached reply limit.",
"Mod View": "Mod View",
"Zoom": "Zoom"
}

@ -91,9 +91,11 @@
"Access to board assets and custompages. Ability to upload, create, edit, delete.": "Access to board assets and custompages. Ability to upload, create, edit, delete.",
"Access to staff management, and ability to add or remove permissions from others. Can only be given by somebody else with \"Board Owner\" permission. Use with caution!": "Access to staff management, and ability to add or remove permissions from others. Can only be given by somebody else with \"Board Owner\" permission. Use with caution!",
"Account": "Conta",
"Account permissions": "Permissões de conta",
"Accounts": "Contas",
"Actions": "Ações",
"Active sessions": "Sessões ativas",
"Active Sessions": "Sessões Ativas",
"Add": "Adicionar",
"Add Asset (Max %s)": {
"one": "Adicionar Asset (Máx %s)",
@ -175,15 +177,18 @@
"Canvas width in pixels": "Largura da tela em pixeis",
"Captcha text": "Código captcha",
"Catalog": "Catálogo",
"Catalog View": "Catálogo",
"Change password": "Alterar password",
"Change Password": "Change Password",
"Clear": "Limpar",
"Click here if you are not redirected automatically.": "Se não fores redirecionado automaticamente, podes clicar aqui.",
"Close": "Fechar",
"Code Block": "Code Block",
"Code theme": "Tema código",
"Color": "Cor",
"comma separated": "separado por vírgula",
"Confirm New Password": "Confirm New Password",
"Confirm Password": "Confirmar Password",
"Connected for live posts": "Ligado",
"Connected for live posts (%sms)": "Ligado (%sms)",
"Connecting...": "A ligar...",
@ -203,6 +208,7 @@
"Customisation": "Customisation",
"Customise": "Personalizar",
"Cyclic": "Cyclic",
"Date": "Data",
"Date Added": "Data Adicionado",
"Default name": "Nome default",
"Delete": "Apagar",
@ -242,6 +248,7 @@
"Edit Custom Page": "Editar página",
"Edit Duration": "Alterar Duração",
"Edit News": "Editar Notícias",
"Edit newspost": "Edit Newspost",
"Edit Newspost": "Editar notícia",
"Edit Note": "Editar Nota",
"Edit Post": "Editar Publicação",
@ -253,7 +260,9 @@
"Error connecting": "Erro a ligar",
"Error reconnecting": "Erro a ligar",
"Europe": "Tor Exit Node",
"Events": "Eventos",
"Existing Password": "Existing Password",
"Expires": "Expira",
"Expiry": "Expira",
"Export": "Exportar",
"Export does not include post password or (You)'s": "Exportar não inclui passwords ou (You)'s",
@ -319,6 +328,7 @@
"Import/Export Settings": "Importar/Exportar Opções",
"Include Default Boards": "Incluir tábuas default",
"Index": "Index",
"Index View": "Index",
"Inline Monospace": "Inline Monospace",
"Internal server error": "Erro interno do servidor",
"Invalid dimensions.": "Dimensões invalidas.",
@ -349,6 +359,7 @@
"Log out": "Log out",
"Login": "Entrar",
"Logs": "Logs",
"Logs for %s": "Logs for %s",
"Lokinet SNApp": "Lokinet SNApp",
"Loop audio/video": "Loop áudio/vídeo",
"Make links clickable": "Make links clickable",
@ -374,6 +385,7 @@
"Move down": "Mover para baixo",
"Move up": "Mover para cima",
"My permissions": "Minhas permissões",
"My Permissions": "Minhas Permissões",
"Name": "Nome",
"Narrow": "Curto",
"Narrow Range": "Range Curto",
@ -390,6 +402,7 @@
"No camera? Use this secret in your authenticator app instead": "Sem câmara? Usa este segredo na tua aplicação de autenticação",
"No Filters": "Sem Filtros",
"No Logs.": "No Logs.",
"No news.": "Sem notícias.",
"No posts.": "Sem publicações.",
"No reports.": "Sem denúncias.",
"No results.": "No results.",
@ -412,6 +425,8 @@
"Or, apply a role": "Or, apply a role",
"Order": "Ordem",
"Overboard": "Tudo",
"Overboard Catalog": "Tudo",
"Overboard Index": "Tudo",
"Own Boards": "Own Boards",
"Owner": "Admin",
"Page": "Página",
@ -448,6 +463,7 @@
"Reason": "Reason",
"Recent": "Recentes",
"Recent Posts": "Recept Posts",
"Recently bumped threads from multiple boards": "Recently bumped threads from multiple boards",
"Recording replay": "A gravar repetição",
"Recursive post hide": "Esconder recursivo",
"Redo": "Refazer",
@ -487,6 +503,7 @@
"one": "Seleciona/Arrasta/Cola ficheiro",
"other": "Seleciona/Arrasta/Cola ficheiros"
},
"Sessions": "Sessões",
"Settings": "Opções",
"Setup 2FA": "Configuração 2FA",
"Setup 2FA (TOTP)": "Configurar 2FA (TOTP)",
@ -583,6 +600,9 @@
"You": "You",
"You moderate": "Que moderas",
"You own": "Que administras",
"You will be redirected shortly.": "Vais ser redirecionado em breve",
"Your upload was too large": "Your upload was too large",
"⊖ Thread has reached reply limit.": "⊖ O fio foi trancado.",
"Mod View": "Mod View",
"Zoom": "Zoom"
}

@ -22,4 +22,4 @@ block content
div
a.button(href=link.href target='_blank') #{link.text}
if redirect
p You will be redirected shortly. If you are not redirected automatically, you can #[a(href=redirect) click here].
p #{__('You will be redirected shortly.')} #[a(href=redirect) #{__('Click here if you are not redirected automatically.')}]

@ -4,10 +4,10 @@ include ../mixins/boardnav.pug
include ../mixins/postlink.pug
block head
title /#{board._id}/ - Logs for #{startDate.toDateString()}
title /#{board._id}/ - #{__('Logs for %s', startDate.toDateString())}
block content
+boardheader('Logs')
+boardheader(__('Logs'))
br
include ../includes/stickynav.pug
.pages
@ -16,16 +16,16 @@ block content
.table-container.flex-center.mv-10.text-center
table
tr
th Date
th User
th Actions
th Posts
th Log Message
th #{__('Date')}
th #{__('User')}
th #{__('Actions')}
th #{__('Posts')}
th #{__('Log Message')}
for log in logs
tr
- const logDate = new Date(log.date);
td: time.reltime(datetime=logDate.toISOString()) #{logDate.toLocaleString(undefined, {hourCycle:'h23'})}
td(class=(!log.showUser ? 'em' : '')) #{log.showUser ? log.user : 'Hidden User'}
td(class=(!log.showUser ? 'em' : '')) #{log.showUser ? log.user : __('Hidden User')}
td #{log.actions}
td
if log.showLinks

@ -3,23 +3,23 @@ include ../mixins/boardheader.pug
include ../mixins/boardnav.pug
block head
title /#{board._id}/ - Logs
title /#{board._id}/ - #{__('Logs')}
block content
+boardheader('Logs')
+boardheader(__('Logs'))
br
include ../includes/stickynav.pug
.pages
+boardnav('logs', true, false)
hr(size=1)
if dates.length === 0
p No Logs.
p #{__('No Logs.')}
else
.table-container.flex-center.mv-10.text-center
table
tr
th Date
th Events
th #{__('Date')}
th #{__('Events')}
for row in dates
tr
-

@ -2,14 +2,14 @@ extends ../layout.pug
include ../mixins/mypermissions.pug
block head
title My Permisions
title #{__('My Permisions')}
block content
.board-header
h1.board-title My Permissions
h1.board-title #{__('My Permissions')}
br
hr(size=1)
h4.no-m-p Board-specific permissions
h4.no-m-p #{__('Board-specific permissions')}
if user.ownedBoards && user.ownedBoards.length > 0 || user.staffBoards && user.staffBoards.length > 0
ul
for b in user.ownedBoards
@ -19,9 +19,9 @@ block content
li
a(href=`/${b}/manage/mypermissions.html`) /#{b}/
else
p None
p #{__('None')}
hr(size=1)
h4.mv-5 Account permissions
h4.mv-5 #{__('Account permissions')}
|
if permissions.get(Permissions.MANAGE_GLOBAL_ACCOUNTS)
|

@ -2,12 +2,12 @@ extends ../layout.pug
include ../mixins/newspost.pug
block head
title News
title #{__('News')}
block content
h1.board-title News
h1.board-title #{__('News')}
if news.length === 0
p.text-center No news.
p.text-center #{__('No news.')}
else
include ../includes/stickynav.pug
each post in news

@ -4,15 +4,15 @@ include ../mixins/overboardform.pug
include ../mixins/announcements.pug
block head
title Overboard Index
title #{__('Overboard Index')}
block content
.board-header
h1.board-title Overboard Index
h4.board-description Recently bumped threads from multiple boards
h1.board-title #{__('Overboard Index')}
h4.board-description #{__('Recently bumped threads from multiple boards')}
|
| (
a(href=`/catalog.html?${cacheQueryString}`) Catalog View
a(href=`/catalog.html?${cacheQueryString}`) #{__('Catalog View')}
| )
include ../includes/stickynav.pug
if allowCustomOverboard === true
@ -20,7 +20,7 @@ block content
+announcements(true, true, false)
hr(size=1)
if threads.length === 0
p No posts.
p #{__('No posts.')}
for thread in threads
h4.no-m-p Thread from #[a(href=`/${thread.board}/index.html`) /#{thread.board}/]
.thread

@ -4,15 +4,15 @@ include ../mixins/overboardform.pug
include ../mixins/announcements.pug
block head
title Overboard Catalog
title #{__('Overboard Catalog')}
block content
.board-header.mb-5
h1.board-title Overboard Catalog
h4.board-description Recently bumped threads from multiple boards
h1.board-title #{__('Overboard Catalog')}
h4.board-description #{__('Recently bumped threads from multiple boards')}
|
| (
a(href=`/overboard.html?${cacheQueryString}`) Index View
a(href=`/overboard.html?${cacheQueryString}`) #{__('Index View')}
| )
if allowCustomOverboard === true
+overboardform('/catalog.html')
@ -28,7 +28,7 @@ block content
option(value="replies") #{__('Reply Count')}
hr(size=1)
if threads.length === 0
p No posts.
p #{__('No posts.')}
else
.catalog
for thread, i in threads

@ -1,25 +1,25 @@
extends ../layout.pug
block head
title Register
title #{__('Register')}
block content
h1.board-title Register
h1.board-title #{__('Register')}
.form-wrapper.flex-center.mv-10
form.form-post(action='/forms/register' method='POST' data-captcha-preload='true')
.row
.label Username
input(type='text', name='username', maxlength='50' pattern='[a-zA-Z0-9]+' required title='alphanumeric only')
.label #{__('Username')}
input(type='text', name='username', maxlength='50' pattern='[a-zA-Z0-9]+' required title=__('alphanumeric only'))
.row
.label Password
.label #{__('Password')}
input(type='password', name='password', maxlength='100' required)
.row
.label Confirm Password
.label #{__('Confirm Password')}
input(type='password', name='passwordconfirm', maxlength='100' required)
if captchaOptions.type === 'text'
include ../includes/captchasidelabel.pug
else
include ../includes/captchafieldrow.pug
input(type='submit', value='Register')
p: a(href='/login.html') Login
p: a(href='/changepassword.html') Change Password
input(type='submit', value=__('Register'))
p: a(href='/login.html') #{__('Login')}
p: a(href='/changepassword.html') #{__('Change Password')}

@ -1,27 +1,27 @@
extends ../layout.pug
block head
title Login Sessions
title #{__('Sessions')}
block content
.board-header
h1.board-title Active Sessions
h1.board-title #{__('Active Sessions')}
br
hr(size=1)
h4.mv-5 Active sessions:
h4.mv-5 #{__('Active Sessions')}:
form.form-post.nogrow(action=`/forms/deletesessions` method='POST' enctype='application/x-www-form-urlencoded')
input(type='hidden' name='_csrf' value=csrf)
.table-container.flex-left.text-center
table
tr
th
th ID
th Expires
th #{__('ID')}
th #{__('Expires')}
each session, sessionId in sessions
tr(class=(sessionId === currentSessionKey ? 'bold' : ''))
td: input(type='checkbox', name='checkedsessionids' value=sessionId)
td #{sessionId} #{sessionId === currentSessionKey ? '(current)' : ''}
- const expiryDate = new Date(session.cookie.expires)
td: time.reltime(datetime=expiryDate.toISOString()) #{expiryDate.toLocaleString(undefined, {hourCycle:'h23'})}
h4.mv-5 Delete Selected:
input(type='submit', value='Delete')
h4.mv-5 #{__('Delete Selected')}:
input(type='submit', value=__('Delete'))

Loading…
Cancel
Save