mirror of https://github.com/calzoneman/sync.git
fixed nav.jade for login/register
This commit is contained in:
parent
8bee1afad1
commit
4ba38019d2
|
@ -27,14 +27,14 @@ mixin navdefaultlinks(page)
|
|||
b.caret
|
||||
ul.dropdown-menu
|
||||
if loggedIn
|
||||
li: a(href="/logout?dest=#{encodeURIComponent(baseUrl + page)}") Logout
|
||||
li: a(href="#{loginDomain}/logout?dest=#{encodeURIComponent(baseUrl + page)}") Logout
|
||||
li.divider
|
||||
li: a(href="/account/channels") Channels
|
||||
li: a(href="/account/profile") Profile
|
||||
li: a(href="/account/edit") Change Password/Email
|
||||
li: a(href="#{loginDomain}/account/channels") Channels
|
||||
li: a(href="#{loginDomain}/account/profile") Profile
|
||||
li: a(href="#{loginDomain}/account/edit") Change Password/Email
|
||||
else
|
||||
li: a(href="/login?dest=#{encodeURIComponent(baseUrl + page)}") Login
|
||||
li: a(href="/register") Register
|
||||
li: a(href="#{loginDomain}/login?dest=#{encodeURIComponent(baseUrl + page)}") Login
|
||||
li: a(href="#{loginDomain}/register") Register
|
||||
|
||||
mixin navloginlogout(redirect)
|
||||
if loggedIn
|
||||
|
@ -62,7 +62,7 @@ mixin navloginform(redirect)
|
|||
.visible-md
|
||||
p#loginform.navbar-text.pull-right
|
||||
a#login.navbar-link(href="#{loginDomain}/login?dest=#{encodeURIComponent(baseUrl + redirect)}") Log in
|
||||
span ·
|
||||
span · d
|
||||
a#register.navbar-link(href="/register") Register
|
||||
|
||||
|
||||
|
@ -70,4 +70,4 @@ mixin navlogoutform(redirect)
|
|||
p#logoutform.navbar-text.pull-right
|
||||
span#welcome Welcome, #{loginName}
|
||||
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 New Issue