merge-requests/218/head^2
Thomas Lynch 3 years ago
parent e103c71478
commit d4e39ce046
  1. 8
      models/forms/changeboardsettings.js
  2. 26
      views/includes/actionfooter.pug

@ -142,6 +142,14 @@ module.exports = async (req, res, next) => {
, rebuildCatalog = false , rebuildCatalog = false
, rebuildOther = false; , rebuildOther = false;
if (newSettings.userPostDelete !== oldSettings.userPostDelete
|| newSettings.userPostSpoiler !== oldSettings.userPostSpoiler
|| newSettings.userPostUnlink !== oldSettings.userPostUnlink) {
rebuildThreads = true;
rebuildBoard = true;
rebuildCatalog = true;
}
if (newSettings.captchaMode > oldSettings.captchaMode) { if (newSettings.captchaMode > oldSettings.captchaMode) {
if (oldSettings.captchaMode === 0) { if (oldSettings.captchaMode === 0) {
rebuildBoard = true; rebuildBoard = true;

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

Loading…
Cancel
Save