mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-13 19:22:05 +00:00
1.) module dependency updated from jade 1.11.0 to pug 2.0.0-beta3 2.) All references to Jade have been changed to Pug 3.) /srv/web/jade.js is renamed to pug.js 4.) all template files renamed accordingly 5.) "mixin somename" is automatically considered a declaration, invocations must use "+somename" 6.) variable interpolation is no longer supported inside element attributes, use direct references and string concatenation instead. 7.) bumped minor version
41 lines
1.3 KiB
Text
41 lines
1.3 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("/")
|
|
+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="/r/"+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 = "/r/" + $("#channelname").val();
|
|
}
|
|
});
|