diff --git a/gulp/res/css/style.css b/gulp/res/css/style.css index 954bbea2..0ee6b295 100644 --- a/gulp/res/css/style.css +++ b/gulp/res/css/style.css @@ -263,7 +263,7 @@ p { border-style: dashed !important; justify-content: center; padding: 5px; - /*min-width: 220px;*/ + min-width: 220px; flex-grow: 1; flex-direction: column; } @@ -988,6 +988,14 @@ table, .boardtable { box-sizing: border-box; } + .filelabel { + min-width: 0; + } + + .fh { + height: 100%; + } + .form-post { width: 100%; } diff --git a/views/includes/postform.pug b/views/includes/postform.pug index a05b5e2a..f681ba18 100644 --- a/views/includes/postform.pug +++ b/views/includes/postform.pug @@ -38,18 +38,19 @@ section.form-wrapper.flex-center if board.settings.maxFiles > 0 - const maxFiles = board.settings.maxFiles; section.row - .label.wp + .label.wp.db | File#{maxFiles > 1 ? 's' : ''} if fileRequired - .required * + span.required * if maxFiles > 1 - | + | + | small (Max #{maxFiles}) span.col include ./filelabel.pug input#file(type='file', name='file' multiple required=fileRequired ) if board.settings.userPostSpoiler - label.postform-style.ph-5.ml-1 + label.postform-style.ph-5.ml-1.fh input(type='checkbox', name='spoiler', value='true') | Spoiler if board.settings.userPostSpoiler || board.settings.userPostDelete || board.settings.userPostUnlink diff --git a/views/mixins/ban.pug b/views/mixins/ban.pug index f0e98494..51d1bd30 100644 --- a/views/mixins/ban.pug +++ b/views/mixins/ban.pug @@ -12,8 +12,10 @@ mixin ban(ban, banpage) td= ban.reason td ...#{ban.ip.slice(-10)} td= ban.issuer - td= ban.date.toLocaleString(undefined, {hour12:false}) - td= ban.expireAt.toLocaleString() + - const banDate = new Date(ban.date); + td: time.right.reltime(datetime=banDate.toISOString()) #{banDate.toLocaleString(undefined, {hour12:false})} + - const expireDate = new Date(ban.expireAt); + td: time.right.reltime(datetime=expireDate.toISOString()) #{expireDate.toLocaleString(undefined, {hour12:false})} td.banposts if ban.posts && ban.posts.length > 0 | Hover to view diff --git a/views/pages/globalmanageaccounts.pug b/views/pages/globalmanageaccounts.pug index 3ae733f0..afc25c33 100644 --- a/views/pages/globalmanageaccounts.pug +++ b/views/pages/globalmanageaccounts.pug @@ -26,7 +26,7 @@ block content form.form-post(action=`/forms/global/editaccounts` method='POST' enctype='application/x-www-form-urlencoded') input(type='hidden' name='_csrf' value=csrf) .table-container.flex-left - table + table.fw tr th th Username diff --git a/views/pages/globalmanagelogs.pug b/views/pages/globalmanagelogs.pug index 1e19ed55..f3c87f52 100644 --- a/views/pages/globalmanagelogs.pug +++ b/views/pages/globalmanagelogs.pug @@ -35,13 +35,17 @@ block content th Log Message for log in logs tr - td #{log.date.toLocaleString(undefined, {hour12:false})} + - const logDate = new Date(log.date); + td: time.reltime(datetime=logDate.toISOString()) #{logDate.toLocaleString(undefined, {hour12:false})} td a(href=`/${log.board}/index.html`) /#{log.board}/ | a(href=`?uri=${log.board}`) [+] td - a(href=`accounts.html?username=${log.user}`) #{log.user} + if log.user !== 'Unregistered User' + a(href=`accounts.html?username=${log.user}`) #{log.user} + else + | #{log.user} | a(href=`?username=${log.user}`) [+] td #{log.actions} diff --git a/views/pages/modlog.pug b/views/pages/modlog.pug index 299129f2..09327ad9 100644 --- a/views/pages/modlog.pug +++ b/views/pages/modlog.pug @@ -23,7 +23,8 @@ block content th Log Message for log in logs tr - td #{log.date.toLocaleString(undefined, {hour12:false})} + - const logDate = new Date(log.date); + td: time.reltime(datetime=logDate.toISOString()) #{logDate.toLocaleString(undefined, {hour12:false})} td(class=(!log.showUser ? 'em' : '')) #{log.showUser ? log.user : 'Hidden User'} td #{log.actions} td #{log.postIds}