cleaned up non-used code
This commit is contained in:
parent
0cc37ca331
commit
92b0cfe3d3
|
@ -26,25 +26,6 @@ Discourse.User = Discourse.Model.extend({
|
|||
**/
|
||||
staff: Em.computed.or('admin', 'moderator'),
|
||||
|
||||
/**
|
||||
Large version of this user's avatar.
|
||||
|
||||
@property avatarLarge
|
||||
@type {String}
|
||||
**/
|
||||
avatarLarge: function() {
|
||||
return Discourse.Utilities.avatarUrl(this.get('username'), 'large', this.get('avatar_template'));
|
||||
}.property('username'),
|
||||
|
||||
/**
|
||||
Small version of this user's avatar.
|
||||
|
||||
@property avatarSmall
|
||||
@type {String}
|
||||
**/
|
||||
avatarSmall: function() {
|
||||
return Discourse.Utilities.avatarUrl(this.get('username'), 'small', this.get('avatar_template'));
|
||||
}.property('username'),
|
||||
|
||||
searchContext: function() {
|
||||
return ({ type: 'user', id: this.get('username_lower'), user: this });
|
||||
|
|
|
@ -20,7 +20,6 @@ if defined?(Rack::MiniProfiler)
|
|||
(env['PATH_INFO'] !~ /topics\/timings/) &&
|
||||
(env['PATH_INFO'] !~ /assets/) &&
|
||||
(env['PATH_INFO'] !~ /qunit/) &&
|
||||
(env['PATH_INFO'] !~ /users\/.*\/avatar/) &&
|
||||
(env['PATH_INFO'] !~ /srv\/status/) &&
|
||||
(env['PATH_INFO'] !~ /commits-widget/)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue