2013-12-26 03:04:26 +00:00
|
|
|
doctype html
|
2013-12-12 20:48:23 +00:00
|
|
|
html(lang="en")
|
|
|
|
head
|
|
|
|
include head
|
2016-07-07 08:11:56 +00:00
|
|
|
+head()
|
2013-12-12 20:48:23 +00:00
|
|
|
body
|
|
|
|
#wrap
|
|
|
|
nav.navbar.navbar-inverse.navbar-fixed-top(role="navigation")
|
|
|
|
include nav
|
2016-07-07 08:11:56 +00:00
|
|
|
+navheader()
|
2013-12-12 20:48:23 +00:00
|
|
|
#nav-collapsible.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav
|
2016-07-07 08:11:56 +00:00
|
|
|
+navdefaultlinks("/")
|
2016-07-11 03:46:10 +00:00
|
|
|
+navsuperadmin(false)
|
2016-07-07 08:11:56 +00:00
|
|
|
+navloginlogout("/")
|
2014-01-20 23:52:36 +00:00
|
|
|
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
|
2017-06-16 07:16:59 +00:00
|
|
|
td: a(href=`/${channelPath}/${chan.name}`) #{chan.pagetitle} (#{chan.name})
|
2014-01-20 23:52:36 +00:00
|
|
|
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.
|
2013-12-12 20:48:23 +00:00
|
|
|
include footer
|
2016-07-07 08:11:56 +00:00
|
|
|
+footer()
|
2014-01-20 23:52:36 +00:00
|
|
|
script(type="text/javascript").
|
|
|
|
$("#channelname").keydown(function (ev) {
|
|
|
|
if (ev.keyCode === 13) {
|
2017-06-16 07:16:59 +00:00
|
|
|
location.href = "/#{channelPath}/" + $("#channelname").val();
|
2014-01-20 23:52:36 +00:00
|
|
|
}
|
|
|
|
});
|