reltime more things, and improve styling slightly

merge-requests/208/head
fatchan 5 years ago
parent 29ba37ac32
commit f1915b0916
  1. 10
      gulp/res/css/style.css
  2. 9
      views/includes/postform.pug
  3. 6
      views/mixins/ban.pug
  4. 2
      views/pages/globalmanageaccounts.pug
  5. 8
      views/pages/globalmanagelogs.pug
  6. 3
      views/pages/modlog.pug

@ -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%;
}

@ -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

@ -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

@ -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

@ -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}

@ -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}

Loading…
Cancel
Save