sync/templates/index.jade

76 lines
2.8 KiB
Plaintext
Raw Normal View History

2013-12-26 03:04:26 +00:00
doctype html
html(lang="en")
head
include head
2013-12-26 03:15:51 +00:00
mixin head()
body
#wrap
nav.navbar.navbar-inverse.navbar-fixed-top(role="navigation")
include nav
2013-12-26 03:15:51 +00:00
mixin navheader()
#nav-collapsible.collapse.navbar-collapse
ul.nav.navbar-nav
2013-12-26 03:15:51 +00:00
mixin navdefaultlinks("/")
mixin 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
2014-01-23 21:53:53 +00:00
td: a(href="/r/#{chan.name}") #{chan.pagetitle} (#{chan.name})
2014-01-20 23:52:36 +00:00
td= chan.usercount
td= chan.mediatitle
2015-01-25 17:21:52 +00:00
.well.well-sm
h4(style='text-align: center') Public Channels
.well
.row(style='margin-right: -2px')
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.row(style='padding-top: 10px; margin-right: -2px')
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.well.well-sm
h4(style='text-align: center') Music Channels
.well
.row(style='margin-right: -2px')
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.row(style="padding-top: 10px; margin-right: -2px")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
.col-lg-4.col-md-4
img(src= "http://placehold.it/250x100")
2014-01-20 23:52:36 +00:00
.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
2013-12-26 03:15:51 +00:00
mixin footer()
2014-01-20 23:52:36 +00:00
script(type="text/javascript").
$("#channelname").keydown(function (ev) {
if (ev.keyCode === 13) {
location.href = "/r/" + $("#channelname").val();
}
});