issue #1, need login link on profile pages

This commit is contained in:
Mike Macgirvin 2010-10-09 00:45:09 -07:00
parent beb9fe3ff1
commit 9dc0e659d6
2 changed files with 11 additions and 1 deletions

View file

@ -2,9 +2,12 @@
$a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
if(x($_SESSION['uid'])) {
if(local_user()) {
$a->page['nav'] .= '<a id="nav-logout-link" class="nav-link" href="logout">' . t('Logout') . "</a>\r\n";
}
else {
$a->page['nav'] .= '<a id="nav-login-link" class="nav-login-link" href="login">' . t('Login') . "</a>\r\n";
}
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";

View file

@ -57,6 +57,13 @@ code {
blockquote:before {
content: '>> ';
}
.nav-login-link {
float: right;
margin-left: 0px;
margin-right: 3px;
padding: 3px;
font-size: 70%;
}
/* NOTIFICATION */
#notification-show-hide-link {