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 details.toggle-label
summary.toggle-summary Show Post Actions summary.toggle-summary Show Post Actions
.actions .actions
h4.no-m-p User Actions: h4.no-m-p Actions:
if board.settings.userPostDelete label
label input.post-check(type='checkbox', name='delete' value=1)
input.post-check(type='checkbox', name='delete' value=1) | Delete Posts
| Delete Posts label
if board.settings.userPostUnlink input.post-check(type='checkbox', name='unlink_file' value=1)
label | Unlink Files
input.post-check(type='checkbox', name='unlink_file' value=1) label
| Unlink Files input.post-check(type='checkbox', name='spoiler' value=1)
if board.settings.userPostSpoiler | Spoiler Files
label label
input.post-check(type='checkbox', name='spoiler' value=1) input#password(type='text', name='password', placeholder='post password' autocomplete='off')
| Spoiler Files
label
input#password(type='text', name='password', placeholder='post password' autocomplete='off')
label label
input.post-check(type='checkbox', name='report' value=1) input.post-check(type='checkbox', name='report' value=1)
| Report | Report

@ -1,3 +1,5 @@
small.footer 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