Work on user options
This commit is contained in:
parent
fc63191773
commit
9d49df6157
8 changed files with 197 additions and 258 deletions
|
|
@ -13,8 +13,8 @@ html(lang="en")
|
|||
- var cname = "/r/" + channelName
|
||||
ul.nav.navbar-nav
|
||||
+navdefaultlinks(cname)
|
||||
li: a(href="javascript:showUserOptions()") Options
|
||||
li: a(href="javascript:$('#channeloptions').modal()") Channel Settings
|
||||
li: a(href="#", onclick="javascript:showUserOptions()") Options
|
||||
li: a(href="#", onclick="javascript:$('#channeloptions').modal()") Channel Settings
|
||||
+navloginlogout(cname)
|
||||
section#mainpage
|
||||
.container
|
||||
|
|
@ -123,14 +123,6 @@ html(lang="en")
|
|||
i.glyphicon.glyphicon-lock
|
||||
.col-lg-12.col-md-12
|
||||
#queue.videolist
|
||||
li.queue_entry
|
||||
a.qe_title(href="#") Derp
|
||||
span.qe_time 00:00
|
||||
div.qe_clear
|
||||
li.queue_entry.queue_active.queue_temp
|
||||
a.qe_title(href="#") Derp
|
||||
span.qe_time 00:00
|
||||
div.qe_clear
|
||||
#plmeta
|
||||
span#plcount 0 items
|
||||
span#pllength 00:00:00
|
||||
|
|
@ -138,6 +130,27 @@ html(lang="en")
|
|||
.col-lg-5.col-md-5
|
||||
#videowidth.col-lg-7.col-md-7
|
||||
#sitefooter
|
||||
#useroptions.modal.fade(tabindex="-1", role="dialog", aria-hidden="true")
|
||||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
button.close(data-dismiss="modal", aria-hidden="true")×
|
||||
h4 User Preferences
|
||||
ul.nav.nav-tabs
|
||||
li: a(href="#us-general", data-toggle="tab") General
|
||||
li: a(href="#us-playback", data-toggle="tab") Playback
|
||||
li: a(href="#us-chat", data-toggle="tab") Chat
|
||||
li: a(href="#us-mod", data-toggle="tab", style="") Moderator
|
||||
.modal-body
|
||||
.tab-content
|
||||
include useroptions
|
||||
+us-general()
|
||||
+us-playback()
|
||||
+us-chat()
|
||||
+us-mod()
|
||||
.modal-footer
|
||||
button.btn.btn-primary(type="button", data-dismiss="modal", onclick="javascript:saveUserOptions()") Save
|
||||
button.btn.btn-default(type="button", data-dismiss="modal") Close
|
||||
#channeloptions.modal.fade(tabindex="-1", role="dialog", aria-hidden="true")
|
||||
.modal-dialog
|
||||
.modal-content
|
||||
|
|
|
|||
82
templates/useroptions.jade
Normal file
82
templates/useroptions.jade
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
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
|
||||
input(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)
|
||||
else
|
||||
input.form-control(id=id, type="text")
|
||||
|
||||
mixin us-general
|
||||
#us-general.tab-pane
|
||||
h4 General Preferences
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
.form-group
|
||||
label.control-label.col-sm-4(for="#us-theme") Theme
|
||||
.col-sm-8
|
||||
select#us-theme.form-control
|
||||
option(value="default") Default
|
||||
option(value="/css/bootstrap-theme.min.css") Bootstrap
|
||||
option(value="/css/dark.css") Dark
|
||||
.form-group
|
||||
label.control-label.col-sm-4(for="#us-layout") Layout
|
||||
.col-sm-8
|
||||
select#us-layout.form-control
|
||||
option(value="default") Compact
|
||||
option(value="synchtube") Synchtube (flipped)
|
||||
option(value="fluid") Fluid
|
||||
.col-sm-4
|
||||
.col-sm-8
|
||||
p.text-danger Changing layouts may require refreshing to take effect.
|
||||
+rcheckbox("us-no-channelcss", "Ignore Channel CSS")
|
||||
+rcheckbox("us-no-channeljs", "Ignore Channel Javascript")
|
||||
+rcheckbox("us-ssl", "Encrypt connection with SSL")
|
||||
|
||||
mixin us-playback
|
||||
#us-playback.tab-pane
|
||||
h4 Playback Preferences
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
+rcheckbox("us-synch", "Synchronize video playback")
|
||||
+textbox("us-synch-accuracy", "Synch threshold (seconds)", "2")
|
||||
+rcheckbox("us-wmode-transparent", "Set wmode=transparent")
|
||||
.col-sm-4
|
||||
.col-sm-8
|
||||
p.text-info Setting <code>wmode=transparent</code> allows objects to be displayed above the video player, but may cause performance issues on some systems.
|
||||
+rcheckbox("us-hidevideo", "Remove the video player")
|
||||
+rcheckbox("us-playlistbuttons", "Hide playlist buttons by default")
|
||||
+rcheckbox("us-oldbtns", "Old style playlist buttons")
|
||||
|
||||
mixin us-chat
|
||||
#us-chat.tab-pane
|
||||
h4 Chat Preferences
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
+rcheckbox("us-chat-timestamp", "Show timestamps in chat")
|
||||
+rcheckbox("us-sort-rank", "Sort userlist by rank")
|
||||
+rcheckbox("us-sort-afk", "Sort AFKers to bottom")
|
||||
+rcheckbox("us-chat-notice", "Ping on all new messages")
|
||||
.col-sm-4
|
||||
.col-sm-8
|
||||
p.text-info When unchecked, you will only be pinged if your name is mentioned
|
||||
+rcheckbox("us-boop", "Play a sound when pinged")
|
||||
+rcheckbox("us-sendbtn", "Add a send button to chat")
|
||||
|
||||
mixin us-mod
|
||||
#us-mod.tab-pane
|
||||
h4 Moderator Preferences
|
||||
form.form-horizontal(action="javascript:void(0)")
|
||||
+rcheckbox("us-modflair", "Show name color")
|
||||
+rcheckbox("us-joinmessage", "Show join messages")
|
||||
Loading…
Add table
Add a link
Reference in a new issue