Skip to content

Commit

Permalink
Merge pull request #213 from inaes-tic/move-user-login
Browse files Browse the repository at this point in the history
move user login to header, render in browser.
  • Loading branch information
xaiki committed Feb 5, 2014
2 parents 132ff89 + 45b1981 commit 7ca27bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
13 changes: 5 additions & 8 deletions views/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ html(lang='#{lang}')
"/js/widgets/fonts/ShareRegular.js",
"/js/widgets/fonts/ShareBold.js"
);
#Panel
- if (everyauth.user)
.personal-block.solo
ul
li
span logged in as:
span.name= everyauth.user.login
|
a(href="/logout") logout
script.
// We use this instead of a plain assignment to cope if someone puts
// funny stuff in their login. Like, " and '.
window.UserLogin = !{JSON.stringify(everyauth.user.login)};
#Panel

#content
block content
Expand Down
9 changes: 9 additions & 0 deletions views/templates/header.jade
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ ul#nav
a.top_link(href="/admin")
i.icon-wrench.icon-white
span= i18n.gettext('Configure')
#Panel
.personal-block.solo
ul
li
span logged in as:
span.name= UserLogin
|
a(href="/logout") logout

0 comments on commit 7ca27bd

Please sign in to comment.