mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 05:05:15 +08:00
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'),
|
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() {
|
searchContext: function() {
|
||||||
return ({ type: 'user', id: this.get('username_lower'), user: this });
|
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'] !~ /topics\/timings/) &&
|
||||||
(env['PATH_INFO'] !~ /assets/) &&
|
(env['PATH_INFO'] !~ /assets/) &&
|
||||||
(env['PATH_INFO'] !~ /qunit/) &&
|
(env['PATH_INFO'] !~ /qunit/) &&
|
||||||
(env['PATH_INFO'] !~ /users\/.*\/avatar/) &&
|
|
||||||
(env['PATH_INFO'] !~ /srv\/status/) &&
|
(env['PATH_INFO'] !~ /srv\/status/) &&
|
||||||
(env['PATH_INFO'] !~ /commits-widget/)
|
(env['PATH_INFO'] !~ /commits-widget/)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user