show form options for mods when disabled since already checked server side

merge-requests/208/head
fatchan 5 years ago
parent 002ee2748a
commit a794790a00
  1. 27
      views/includes/actionfooter.pug
  2. 6
      views/includes/footer.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

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

Loading…
Cancel
Save