mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
cleaned up non-used code
This commit is contained in:
parent
0cc37ca331
commit
92b0cfe3d3
2 changed files with 0 additions and 20 deletions
|
@ -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 a new issue