1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Add discussion author tooltip

This commit is contained in:
Toby Zerner
2015-03-27 11:51:48 +10:30
parent b96fd23842
commit 2a33d5d72f
3 changed files with 17 additions and 4 deletions

View File

@@ -6,7 +6,11 @@ export default Ember.Handlebars.makeBoundHelper(function(user, options) {
if (user) {
var username = user.get('username') || '?';
attributes += ' title="'+Ember.Handlebars.Utils.escapeExpression(username)+'"';
if (typeof options.hash.title === 'undefined') {
options.hash.title = Ember.Handlebars.Utils.escapeExpression(username);
}
attributes += ' title="'+options.hash.title+'"';
var avatarUrl = user.get('avatarUrl');
if (avatarUrl) {