Work on channel settings
This commit is contained in:
parent
b1e6f696e8
commit
8aa92f73ec
4 changed files with 80 additions and 45 deletions
|
|
@ -10,26 +10,26 @@ mixin rcheckbox(id, label)
|
|||
.col-sm-8.col-sm-offset-4
|
||||
.checkbox
|
||||
label.control-label(for=id)= label
|
||||
input(type="checkbox", id=id)
|
||||
input.cs-checkbox(type="checkbox", id=id)
|
||||
|
||||
mixin textbox(id, label, placeholder)
|
||||
.form-group
|
||||
label.control-label.col-sm-4(for=id)= label
|
||||
.col-sm-8
|
||||
if placeholder
|
||||
input.form-control(id=id, type="text", placeholder=placeholder)
|
||||
input.form-control.cs-textbox(id=id, type="text", placeholder=placeholder)
|
||||
else
|
||||
input.form-control(id=id, type="text")
|
||||
input.form-control.cs-textbox(id=id, type="text")
|
||||
|
||||
mixin miscoptions
|
||||
#cs-miscoptions.tab-pane
|
||||
h4 General Settings
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
mixin rcheckbox("opt_enable_link_regex", "Convert URLs in chat to links")
|
||||
mixin rcheckbox("opt_allow_voteskip", "Allow voteskip")
|
||||
mixin textbox("opt_voteskip_ratio", "Voteskip ratio", "0.5")
|
||||
mixin textbox("opt_maxlength", "Max video length", "HH:MM:SS")
|
||||
mixin textbox("opt_afktimeout", "Auto-AFK Delay", "0 (disabled)")
|
||||
mixin rcheckbox("cs-enable_link_regex", "Convert URLs in chat to links")
|
||||
mixin rcheckbox("cs-allow_voteskip", "Allow voteskip")
|
||||
mixin textbox("cs-voteskip_ratio", "Voteskip ratio", "0.5")
|
||||
mixin textbox("cs-maxlength", "Max video length", "HH:MM:SS")
|
||||
mixin textbox("cs-afk_timeout", "Auto-AFK Delay", "0 (disabled)")
|
||||
.form-group
|
||||
.col-sm-8.col-sm-offset-4
|
||||
button.btn.btn-default#cs-miscoptionssubmit Save
|
||||
|
|
@ -39,11 +39,11 @@ mixin adminoptions
|
|||
h4 Admin-Only Settings
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
- var defname = "CyTube - /r/" + channelName
|
||||
mixin textbox("opt_pagetitle", "Page title", defname)
|
||||
mixin textbox("opt_password", "Password", "leave blank to disable")
|
||||
mixin textbox("opt_externalcss", "External CSS", "Stylesheet URL")
|
||||
mixin textbox("opt_externaljs", "External Javascript", "Script URL")
|
||||
mixin rcheckbox("opt_show_public", "List channel publicly")
|
||||
mixin textbox("cs-pagetitle", "Page title", defname)
|
||||
mixin textbox("cs-password", "Password", "leave blank to disable")
|
||||
mixin textbox("cs-externalcss", "External CSS", "Stylesheet URL")
|
||||
mixin textbox("cs-externaljs", "External Javascript", "Script URL")
|
||||
mixin rcheckbox("cs-show_public", "List channel publicly")
|
||||
.form-group
|
||||
.col-sm-8.col-sm-offset-4
|
||||
button.btn.btn-default#cs-adminoptionssubmit Save
|
||||
|
|
@ -53,21 +53,21 @@ mixin motdeditor
|
|||
h4 MOTD editor
|
||||
p The MOTD can be formatted using a subset of HTML. Tags which attempt to execute Javascript will be removed.
|
||||
textarea.form-control#cs-motdtext(rows="10")
|
||||
button.btn.btn-default#cs-motdsubmit Save MOTD
|
||||
button.btn.btn-primary.pull-right#cs-motdsubmit Save MOTD
|
||||
|
||||
mixin csseditor
|
||||
#cs-csseditor.tab-pane
|
||||
h4 CSS editor
|
||||
p Maximum size 20KB. If more space is required, use the External CSS option under General Settings to link to an externally hosted stylesheet.
|
||||
textarea.form-control#cs-csstext(rows="10")
|
||||
button.btn.btn-default#cs-csssubmit Save CSS
|
||||
button.btn.btn-primary.pull-right#cs-csssubmit Save CSS
|
||||
|
||||
mixin jseditor
|
||||
#cs-jseditor.tab-pane
|
||||
h4 JS editor
|
||||
p Maximum size 20KB. If more space is required, use the External JS option under General Settings to link to an externally hosted stylesheet.
|
||||
textarea.form-control#cs-jstext(rows="10")
|
||||
button.btn.btn-default#cs-jssubmit Save JS
|
||||
button.btn.btn-primary.pull-right#cs-jssubmit Save JS
|
||||
|
||||
mixin banlist
|
||||
#cs-banlist.tab-pane
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue