UX: clean up title for user avatar hover in header

This commit is contained in:
Sam 2015-06-01 17:08:19 +10:00
parent 9910dc041f
commit b2b4af213c
3 changed files with 5 additions and 6 deletions

View file

@ -18,10 +18,6 @@ const HeaderController = DiscourseController.extend({
return Discourse.User.current() && !this.get('topic.isPrivateMessage');
}.property('topic.isPrivateMessage'),
userDisplayName: function() {
return (Discourse.SiteSettings.enable_names && this.get('currentUser.name')) ? this.get('currentUser.name') : this.get('currentUser.username');
}.property('currentUser.name', 'currentUser.username'),
_resetCachedNotifications: function() {
// a bit hacky, but if we have no focus, hide notifications first
const visible = $("#notifications-dropdown").is(":visible");

View file

@ -54,6 +54,7 @@
data-render="renderSiteMap"
href
title='{{i18n 'site_map'}}'
aria-label='{{i18n 'site_map'}}'
id="site-map">
{{fa-icon "bars" label="site_map"}}
</a>
@ -68,7 +69,8 @@
data-dropdown="user-dropdown"
data-render="renderUserDropdown"
href="#"
title='{{i18n 'user.avatar.title' name=userDisplayName}}'
title='{{i18n 'user.avatar.header_title'}}'
aria-label='{{i18n 'user.avatar.header_title'}}'
id="current-user">
{{bound-avatar currentUser "medium"}}
</a>

View file

@ -587,7 +587,8 @@ en:
registration_ip_address:
title: "Registration IP Address"
avatar:
title: "{{name}} profile"
title: "Profile Picture"
header_title: "profile, messages, bookmarks and preferences"
title:
title: "Title"