Skip to content

Commit

Permalink
MINOR Add missing title attribute to profile link (#534)
Browse files Browse the repository at this point in the history
* Add missing title attribute to profile link
* Include name in tooltip
  • Loading branch information
Luke Edwards authored and maxime-rainville committed Jul 16, 2018
1 parent a8e5616 commit 3c51a75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ en:
PERMAGAIN: 'You have been logged out of the CMS. If you would like to log in again, enter a username and password below.'
PERMALREADY: 'I''m sorry, but you can''t access that part of the CMS. If you want to log in as someone else, do so below.'
PERMDEFAULT: 'You must be logged in to access the administration area; please enter your credentials below.'
PROFILE: '{name} profile'
PreviewButton: Preview
REQUIREJS: 'The CMS requires that you have JavaScript enabled.'
SAVEDUP: Saved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="cms-login-status">
<% with $CurrentMember %>
<a href="{$AdminURL}myprofile" class="cms-login-status__profile-link">
<a href="{$AdminURL}myprofile" class="cms-login-status__profile-link" title="<%t SilverStripe\Admin\LeftAndMain.PROFILE '{name} profile' name=$Name %>">
<i class="font-icon-torso"></i>
<span>
<% if $FirstName && $Surname %>$FirstName $Surname<% else_if $FirstName %>$FirstName<% else %>$Email<% end_if %>
Expand Down

0 comments on commit 3c51a75

Please sign in to comment.