Styling, and tweak to show logged in user even if first name doesn't exist

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44572 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2007-11-11 02:43:23 +00:00
parent a33b577aaf
commit b6bff63b10
2 changed files with 7 additions and 9 deletions

View File

@ -270,16 +270,13 @@ body.stillLoading select {
#bottom #logInStatus {
float: right;
}
#bottom #logInStatus a,
#bottom #logInStatus a:hover {
#bottom a {
color: #fff;
background: none;
}
#bottom #logInStatus a {
text-decoration: underline;
}
#bottom #logInStatus a:hover {
#bottom a:hover {
text-decoration: none;
color: #ccc;
}
#bottom #logInStatus #LogoutLink {
background: url(../images/logout.gif) no-repeat right top;
@ -309,10 +306,11 @@ body.stillLoading select {
padding-left: 2px;
color: #fff;
}
#bottom .bottomTabs a.current {
cursor: auto;
#bottom .bottomTabs .current {
color: #ccc;
}
#bottom .bottomTabs a:hover {
color: #ccc;
text-decoration: none;
}

View File

@ -47,7 +47,7 @@
<a href="http://www.silverstripe.com" title="<% _t('SSWEB','Silverstripe Website') %>">SilverStripe CMS</a>&nbsp;-&nbsp;
<abbr style="border-style: none" title="<% _t('APPVERSIONTEXT1',"This is the") %> $ApplicationName <% _t('APPVERSIONTEXT2',"version that you are currently running, technically it's the CVS branch") %>">$CMSVersion</abbr> &nbsp; &nbsp; &nbsp;
<% control CurrentMember %>
<% _t('LOGGEDINAS','Logged in as') %> <strong>$FirstName $Surname</strong> | <a href="{$BaseHref}admin/myprofile" id="EditMemberProfile"><% _t('EDITPROFILE','Profile') %></a> | <a href="Security/logout" id="LogoutLink"><% _t('LOGOUT','log out') %></a>
<% _t('LOGGEDINAS','Logged in as') %> <strong><% if FirstName && Surname %>$FirstName $Surname<% else_if FirstName %>$FirstName<% else %>$Email<% end_if %></strong> | <a href="{$BaseHref}admin/myprofile" id="EditMemberProfile"><% _t('EDITPROFILE','Profile') %></a> | <a href="Security/logout" id="LogoutLink"><% _t('LOGOUT','log out') %></a>
<% end_control %>
</div>