From a794790a008ae980cf009c5fd5fd930f0a57b8b4 Mon Sep 17 00:00:00 2001 From: fatchan Date: Sat, 15 Jun 2019 11:56:03 +0000 Subject: [PATCH] show form options for mods when disabled since already checked server side --- views/includes/actionfooter.pug | 27 ++++++++++++--------------- views/includes/footer.pug | 6 ++++-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/views/includes/actionfooter.pug b/views/includes/actionfooter.pug index 1337335d..3e0a33a6 100644 --- a/views/includes/actionfooter.pug +++ b/views/includes/actionfooter.pug @@ -1,21 +1,18 @@ details.toggle-label summary.toggle-summary Show Post Actions .actions - h4.no-m-p User Actions: - if board.settings.userPostDelete - label - input.post-check(type='checkbox', name='delete' value=1) - | Delete Posts - if board.settings.userPostUnlink - label - input.post-check(type='checkbox', name='unlink_file' value=1) - | Unlink Files - if board.settings.userPostSpoiler - label - input.post-check(type='checkbox', name='spoiler' value=1) - | Spoiler Files - label - input#password(type='text', name='password', placeholder='post password' autocomplete='off') + h4.no-m-p Actions: + label + input.post-check(type='checkbox', name='delete' value=1) + | Delete Posts + label + input.post-check(type='checkbox', name='unlink_file' value=1) + | Unlink Files + label + input.post-check(type='checkbox', name='spoiler' value=1) + | Spoiler Files + label + input#password(type='text', name='password', placeholder='post password' autocomplete='off') label input.post-check(type='checkbox', name='report' value=1) | Report diff --git a/views/includes/footer.pug b/views/includes/footer.pug index 4ee705f6..5592b6af 100644 --- a/views/includes/footer.pug +++ b/views/includes/footer.pug @@ -1,3 +1,5 @@ small.footer - a(href='https://github.com/fatchan/jschan/') source code - span - rendered in #{Date.now() - renderStart}ms + | - + a(href='https://github.com/fatchan/jscshan/') source code + - const ms = Date.now()-renderStart + span + took #{ms > 0 ? ms/1000 : 0}s -