fixed nav.jade for login/register
This commit is contained in:
parent
8bee1afad1
commit
4ba38019d2
|
@ -27,14 +27,14 @@ mixin navdefaultlinks(page)
|
||||||
b.caret
|
b.caret
|
||||||
ul.dropdown-menu
|
ul.dropdown-menu
|
||||||
if loggedIn
|
if loggedIn
|
||||||
li: a(href="/logout?dest=#{encodeURIComponent(baseUrl + page)}") Logout
|
li: a(href="#{loginDomain}/logout?dest=#{encodeURIComponent(baseUrl + page)}") Logout
|
||||||
li.divider
|
li.divider
|
||||||
li: a(href="/account/channels") Channels
|
li: a(href="#{loginDomain}/account/channels") Channels
|
||||||
li: a(href="/account/profile") Profile
|
li: a(href="#{loginDomain}/account/profile") Profile
|
||||||
li: a(href="/account/edit") Change Password/Email
|
li: a(href="#{loginDomain}/account/edit") Change Password/Email
|
||||||
else
|
else
|
||||||
li: a(href="/login?dest=#{encodeURIComponent(baseUrl + page)}") Login
|
li: a(href="#{loginDomain}/login?dest=#{encodeURIComponent(baseUrl + page)}") Login
|
||||||
li: a(href="/register") Register
|
li: a(href="#{loginDomain}/register") Register
|
||||||
|
|
||||||
mixin navloginlogout(redirect)
|
mixin navloginlogout(redirect)
|
||||||
if loggedIn
|
if loggedIn
|
||||||
|
@ -62,7 +62,7 @@ mixin navloginform(redirect)
|
||||||
.visible-md
|
.visible-md
|
||||||
p#loginform.navbar-text.pull-right
|
p#loginform.navbar-text.pull-right
|
||||||
a#login.navbar-link(href="#{loginDomain}/login?dest=#{encodeURIComponent(baseUrl + redirect)}") Log in
|
a#login.navbar-link(href="#{loginDomain}/login?dest=#{encodeURIComponent(baseUrl + redirect)}") Log in
|
||||||
span ·
|
span · d
|
||||||
a#register.navbar-link(href="/register") Register
|
a#register.navbar-link(href="/register") Register
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,4 +70,4 @@ mixin navlogoutform(redirect)
|
||||||
p#logoutform.navbar-text.pull-right
|
p#logoutform.navbar-text.pull-right
|
||||||
span#welcome Welcome, #{loginName}
|
span#welcome Welcome, #{loginName}
|
||||||
span ·
|
span ·
|
||||||
a#logout.navbar-link(href="/logout?dest=#{encodeURIComponent(baseUrl + redirect)}&_csrf=#{csrfToken}") Logout
|
a#logout.navbar-link(href="#{loginDomain}/logout?dest=#{encodeURIComponent(baseUrl + redirect)}&_csrf=#{csrfToken}") Logout
|
Loading…
Reference in a new issue