Add logout link.

This commit is contained in:
opi 2014-02-17 14:40:34 +01:00
parent c5dc0a5ef2
commit 589e2614cc
2 changed files with 6 additions and 2 deletions

View file

@ -117,12 +117,15 @@
line-height: 1.4; line-height: 1.4;
font-size: 3em; font-size: 3em;
} }
#ynhoverlay .account-link { #ynhoverlay .header {
color: #ccc;
}
#ynhoverlay .header a {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
color: #ccc; color: #ccc;
} }
#ynhoverlay .account-link:hover { #ynhoverlay .header a:hover {
text-decoration: underline; text-decoration: underline;
color: #fff; color: #fff;
} }

View file

@ -159,6 +159,7 @@ domReady(function(){
overlay.innerHTML += '<div class="header">' + overlay.innerHTML += '<div class="header">' +
'<h1>'+ response.user +'</h1>' + '<h1>'+ response.user +'</h1>' +
'<a class="account-link" href="'+ response.portal_url +'">View my account</a>' + '<a class="account-link" href="'+ response.portal_url +'">View my account</a>' +
' | <a class="logout-link" href="'+ response.portal_url +'?action=logout">Logout</a>' +
'</div>'; '</div>';
// Add application links // Add application links