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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user