Add some icons to admin dashboard

This commit is contained in:
Neil Lalonde
2013-04-16 18:37:35 -04:00
parent dfdf65e870
commit 9a7019e44f
6 changed files with 38 additions and 8 deletions

View File

@ -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({