mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
We now allow server operators to customize the /r/ part of the channel links The new config option in the template is commented and the config module validates and will terminate with status 78 if an improper value is used. We've also dropped some old cruft and uses a more elegant method to assign CHANNEL.name Resolves #668
42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
doctype html
|
|
html(lang="en")
|
|
head
|
|
include head
|
|
+head()
|
|
body
|
|
#wrap
|
|
nav.navbar.navbar-inverse.navbar-fixed-top(role="navigation")
|
|
include nav
|
|
+navheader()
|
|
#nav-collapsible.collapse.navbar-collapse
|
|
ul.nav.navbar-nav
|
|
+navdefaultlinks("/")
|
|
+navsuperadmin(false)
|
|
+navloginlogout("/")
|
|
section#mainpage
|
|
.container
|
|
.col-lg-9.col-md-9
|
|
h3 Public Channels
|
|
table.table.table-bordered.table-striped
|
|
thead
|
|
th Channel
|
|
th # Connected
|
|
th Now Playing
|
|
tbody
|
|
each chan in channels
|
|
tr
|
|
td: a(href=`/${channelPath}/${chan.name}`) #{chan.pagetitle} (#{chan.name})
|
|
td= chan.usercount
|
|
td= chan.mediatitle
|
|
.col-lg-3.col-md-3
|
|
h3 Enter Channel
|
|
input#channelname.form-control(type="text", placeholder="Channel Name")
|
|
p.text-muted New channels can be registered from the <a href="/account/channels">My Channels</a> page.
|
|
include footer
|
|
+footer()
|
|
script(type="text/javascript").
|
|
$("#channelname").keydown(function (ev) {
|
|
if (ev.keyCode === 13) {
|
|
location.href = "/#{channelPath}/" + $("#channelname").val();
|
|
}
|
|
});
|