sync/templates/channeloptions.jade

108 lines
3.5 KiB
Plaintext
Raw Normal View History

mixin lcheckbox(id, label)
.form-group
label.control-label.col-sm-4(for=id)= label
.col-sm-8
.checkbox
input(type="checkbox", id=id)
mixin rcheckbox(id, label)
.form-group
.col-sm-8.col-sm-offset-4
.checkbox
label.control-label(for=id)= label
2014-01-15 06:16:29 +00:00
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
2014-01-15 06:16:29 +00:00
input.form-control.cs-textbox(id=id, type="text", placeholder=placeholder)
else
2014-01-15 06:16:29 +00:00
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)")
2014-01-15 06:16:29 +00:00
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
mixin adminoptions
#cs-adminoptions.tab-pane
h4 Admin-Only Settings
form.form-horizontal(action="javascript:void(0)")
- var defname = "CyTube - /r/" + channelName
2014-01-15 06:16:29 +00:00
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
mixin motdeditor
#cs-motdeditor.tab-pane
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")
2014-01-15 06:16:29 +00:00
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")
2014-01-15 06:16:29 +00:00
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")
2014-01-15 06:16:29 +00:00
button.btn.btn-primary.pull-right#cs-jssubmit Save JS
mixin banlist
#cs-banlist.tab-pane
h4 Ban list
table.table.table-striped
thead
tr
th Unban
th IP
th Name
th Banned by
mixin recentjoins
#cs-recentjoins.tab-pane
h4 Recent connections
table.table.table-striped
thead
tr
th Name
th Aliases
th Time
mixin chanranks
#cs-chanranks.tab-pane
2014-01-09 23:16:09 +00:00
h4 Moderator List
2014-01-09 05:45:26 +00:00
form.form-inline(action="javascript:void(0)", role="form")
.input-group
input#cs-chanranks-name.form-control(type="text", placeholder="Name")
span.input-group-btn
button#cs-chanranks-mod.btn.btn-success +Mod
button#cs-chanranks-adm.btn.btn-info +Admin
2014-01-09 23:16:09 +00:00
button#cs-chanranks-owner.btn.btn-info +Owner
table.table.table-striped
thead
tr
th Name
th Rank