2013-12-12 20:48:23 +00:00
|
|
|
mixin navheader()
|
|
|
|
.navbar-header
|
|
|
|
button.navbar-toggle(type="button", data-toggle="collapse", data-target="#nav-collapsible")
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
a.navbar-brand(href="/")= siteTitle
|
|
|
|
|
2017-08-23 00:33:29 +00:00
|
|
|
mixin navdefaultlinks()
|
|
|
|
li
|
|
|
|
a(href="/") Home
|
2013-12-12 20:48:23 +00:00
|
|
|
li.dropdown
|
|
|
|
a.dropdown-toggle(href="#", data-toggle="dropdown") Account
|
|
|
|
b.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
if loggedIn
|
2016-01-31 19:17:19 +00:00
|
|
|
li: a(href="javascript:$('#logoutform').submit();") Log out
|
2013-12-12 20:48:23 +00:00
|
|
|
li.divider
|
2017-09-20 03:49:33 +00:00
|
|
|
li: a(href="/account/channels") Channels
|
|
|
|
li: a(href="/account/profile") Profile
|
|
|
|
li: a(href="/account/edit") Change Password/Email
|
2018-10-23 04:36:20 +00:00
|
|
|
li: a(href="/account/delete") Delete Account
|
2013-12-12 20:48:23 +00:00
|
|
|
else
|
2017-09-20 03:49:33 +00:00
|
|
|
li: a(href="/login") Login
|
|
|
|
li: a(href="/register") Register
|
2013-12-12 20:48:23 +00:00
|
|
|
|
2016-07-11 03:46:10 +00:00
|
|
|
mixin navsuperadmin(newTab)
|
|
|
|
if superadmin
|
|
|
|
if newTab
|
|
|
|
li: a(href="/acp", target="_blank") ACP
|
|
|
|
else
|
|
|
|
li: a(href="/acp") ACP
|
|
|
|
|
2017-08-23 00:33:29 +00:00
|
|
|
mixin navloginlogout()
|
2013-12-12 20:48:23 +00:00
|
|
|
if loggedIn
|
2017-08-23 00:33:29 +00:00
|
|
|
+navlogoutform()
|
2013-12-12 20:48:23 +00:00
|
|
|
else
|
2017-08-23 00:33:29 +00:00
|
|
|
+navloginform()
|
2013-12-12 20:48:23 +00:00
|
|
|
|
2017-08-23 00:33:29 +00:00
|
|
|
mixin navloginform()
|
2015-02-14 19:21:42 +00:00
|
|
|
.visible-lg
|
2017-09-20 03:49:33 +00:00
|
|
|
form#loginform.navbar-form.navbar-right(action="/login", method="post")
|
2015-02-23 00:15:22 +00:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2013-12-12 20:48:23 +00:00
|
|
|
.form-group
|
|
|
|
input#username.form-control(type="text", name="name", placeholder="Username")
|
|
|
|
.form-group
|
|
|
|
input#password.form-control(type="password", name="password", placeholder="Password")
|
2015-02-07 21:13:28 +00:00
|
|
|
.form-group
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input(type="checkbox", name="remember")
|
2015-02-20 02:30:35 +00:00
|
|
|
span.navbar-text-nofloat Remember me
|
2013-12-12 20:48:23 +00:00
|
|
|
button#login.btn.btn-default(type="submit") Login
|
2015-02-14 19:21:42 +00:00
|
|
|
.visible-md
|
|
|
|
p#loginform.navbar-text.pull-right
|
2017-09-20 03:49:33 +00:00
|
|
|
a#login.navbar-link(href="/login") Log in
|
2015-02-28 08:37:32 +00:00
|
|
|
span ·
|
2015-02-14 19:21:42 +00:00
|
|
|
a#register.navbar-link(href="/register") Register
|
|
|
|
|
2013-12-12 20:48:23 +00:00
|
|
|
|
2017-08-23 00:33:29 +00:00
|
|
|
mixin navlogoutform()
|
2015-10-27 06:21:09 +00:00
|
|
|
form#logoutform.navbar-text.pull-right(action="/logout", method="post")
|
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2013-12-12 20:48:23 +00:00
|
|
|
span#welcome Welcome, #{loginName}
|
|
|
|
span ·
|
2016-01-31 19:17:19 +00:00
|
|
|
input#logout.navbar-link(type="submit", value="Log out")
|
2015-03-29 16:34:27 +00:00
|
|
|
|