mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add some icons to admin dashboard
This commit is contained in:
@@ -87,7 +87,18 @@ Discourse.Report = Discourse.Model.extend({
|
||||
}
|
||||
}
|
||||
return 'no-change';
|
||||
}.property('data', 'prev30Days')
|
||||
}.property('data', 'prev30Days'),
|
||||
|
||||
icon: function() {
|
||||
switch( this.get('type') ) {
|
||||
case 'flags':
|
||||
return 'icon-flag';
|
||||
case 'likes':
|
||||
return 'icon-heart';
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}.property('type')
|
||||
});
|
||||
|
||||
Discourse.Report.reopenClass({
|
||||
|
||||
Reference in New Issue
Block a user