mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
208 lines
6.9 KiB
208 lines
6.9 KiB
include ../mixins/ban.pug
|
|
mixin modal(data)
|
|
.modal-bg(style=data.hidden?'display:none':'')
|
|
.modal(id=(data.settings ? 'settingsmodal' : '') style=data.hidden?'display:none':'')
|
|
.row
|
|
p.bold #{data.title}
|
|
a.close.postform-style#modalclose ×
|
|
if data.bans
|
|
h1.board-title #{__('Banned!')}
|
|
.row#modalbanned
|
|
- const bans = data.bans;
|
|
include ../includes/banform.pug
|
|
if data.message || data.messages || data.error || data.errors
|
|
.row
|
|
ul.nomarks
|
|
if data.message
|
|
li #{data.message}
|
|
if data.error
|
|
li #{data.error}
|
|
if data.messages
|
|
each msg in data.messages
|
|
li #{msg}
|
|
if data.errors
|
|
each error in data.errors
|
|
li #{error}
|
|
if data.frame
|
|
.row.f1
|
|
iframe.bypass#modalframe(src=data.frame frameborder='0' scrolling='no')
|
|
else if data.link
|
|
.row
|
|
a.button.mv-0(href=data.link.href target='_blank') #{data.link.text}
|
|
else if data.redirect && data.title === __('Success')
|
|
.row
|
|
a.button.mv-0(href=data.redirect) #{__('OK')}
|
|
else if data.settings
|
|
.row
|
|
.form-wrapper.flexleft.mt-10
|
|
.row.wrap.sb
|
|
.col.mr-5
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#live-setting(type='checkbox')
|
|
.rlabel #{__('Live posts')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#notification-setting(type='checkbox')
|
|
.rlabel #{__('Notifications')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#notification-yous-only(type='checkbox')
|
|
.rlabel #{__('Only notify (You)s')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#scroll-setting(type='checkbox')
|
|
.rlabel #{__('Scroll to new posts')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#localtime-setting(type='checkbox')
|
|
.rlabel #{__('Local time')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#24hour-setting(type='checkbox')
|
|
.rlabel #{__('24h time')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#relative-setting(type='checkbox')
|
|
.rlabel #{__('Show relative time')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#noncolorids-setting(type='checkbox')
|
|
.rlabel #{__('Non-color IDs')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#hidepoststubs-setting(type='checkbox')
|
|
.rlabel #{__('Hide post stubs')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#hidedeletedpostcontent-setting(type='checkbox')
|
|
.rlabel #{__('Hide deleted post content')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#disableboardcss-setting(type='checkbox')
|
|
.rlabel #{__('Disable board custom CSS')}
|
|
|
|
.col
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#hidethumbnails-setting(type='checkbox')
|
|
.rlabel #{__('Hide thumbnails')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#hiderecursive-setting(type='checkbox')
|
|
.rlabel #{__('Recursive post hide')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#loop-setting(type='checkbox')
|
|
.rlabel #{__('Loop audio/video')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#heightlimit-setting(type='checkbox')
|
|
.rlabel #{__('Unlimit media height')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#crispimages-setting(type='checkbox')
|
|
.rlabel #{__('Crisp image rendering')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#imageloadingbars-setting(type='checkbox')
|
|
.rlabel #{__('Image loading bars')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#alwaysshowspoilers-setting(type='checkbox')
|
|
.rlabel #{__('Always reveal text spoilers')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#yous-setting(type='checkbox')
|
|
.rlabel #{__('Show (You)s')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#smoothscrolling-setting(type='checkbox')
|
|
.rlabel #{__('Smooth scrolling')}
|
|
.row
|
|
label.postform-style.ph-5
|
|
input#threadwatcher-setting(type='checkbox')
|
|
.rlabel #{__('Thread watcher')}
|
|
.row.wrap.sb.mt-5
|
|
.col.mr-5
|
|
.row
|
|
.label #{__('Video/Audio volume')}
|
|
label.postform-style.ph-5
|
|
input#volume-setting(type='range' min='0' max='100')
|
|
.row
|
|
.label #{__('Default name')}
|
|
input#name-setting(type='text' name='name')
|
|
.row
|
|
.label #{__('Post password')}
|
|
input#postpassword-setting(type='password' name='postpassword' autocomplete='new-password')
|
|
.row
|
|
.label #{__('Theme')}
|
|
select#theme-setting
|
|
option(value='default') default
|
|
each theme in data.settings.themes
|
|
option(value=theme) #{theme}
|
|
.row
|
|
.label #{__('Code theme')}
|
|
select#codetheme-setting
|
|
option(value='default') default
|
|
each theme in data.settings.codeThemes
|
|
option(value=theme) #{theme}
|
|
|
|
.col
|
|
.row
|
|
.label #{__('(You)s')}
|
|
input.mr-1#youslist-setting(type='text' readonly)
|
|
input#youslist-clear(type='button' value=__('Clear'))
|
|
.row
|
|
.label #{__('Watchlist')}
|
|
input.mr-1#watchlist-setting(type='text' readonly)
|
|
input#watchlist-clear(type='button' value=__('Clear'))
|
|
.row
|
|
.label #{__('Hidden images')}
|
|
input.mr-1#hiddenimages-setting(type='text' readonly)
|
|
input#hiddenimages-clear(type='button' value=__('Clear'))
|
|
.row
|
|
.label #{__('Cache')}
|
|
input.mr-1#hovercachelist-setting(type='text' readonly)
|
|
input#hovercachelist-clear(type='button' value=__('Clear'))
|
|
.row
|
|
.label #{__('Tegaki Size')}
|
|
input.mr-1.w50#tegakiwidth-setting(type='number')
|
|
.postform-style.ph-5.mr-1 ×
|
|
input.mr-1.w50#tegakiheight-setting(type='number')
|
|
|
|
.row.mt-5
|
|
.label #{__('Custom CSS')}
|
|
textarea#customcss-setting(rows=7)
|
|
|
|
.row.mt-5
|
|
form.text-center#filter-form
|
|
table.fw
|
|
tbody#advancedfilters
|
|
tr
|
|
th(colspan=4) #{__('Post Filters')}
|
|
tr
|
|
td #{__('Type')}
|
|
td #{__('Value')}
|
|
td #{__('Regex?')}
|
|
td: input.right#filters-clear(type='button' value=__('Clear'))
|
|
tr
|
|
td: select(name='type')
|
|
option(value='fname') #{__('Name')}
|
|
option(value='ftrip') #{__('Tripcode')}
|
|
option(value='fsub') #{__('Subject')}
|
|
option(value='fmsg') #{__('Message')}
|
|
td
|
|
input#filter-value-input(required type='text' name='value')
|
|
td
|
|
input(type='checkbox' name='regex')
|
|
td: input.right(type='submit' value=__('Add'))
|
|
.row.mt-5
|
|
.label
|
|
| #{__('Import/Export Settings')}
|
|
small.title #{__('Do NOT import untrusted settings data!')}
|
|
small #{__("Export does not include post password or (You)'s")}
|
|
textarea#import-export-setting(type='text')
|
|
.row
|
|
input.mr-1#export-setting(type='button' value=__('Export'))
|
|
input#import-setting(type='button' value=__('Import'))
|
|
|