mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Reverse the order of rows in a report so today is first
This commit is contained in:
@@ -131,6 +131,10 @@ Discourse.Report = Discourse.Model.extend({
|
||||
|
||||
thirtyDayCountTitle: function() {
|
||||
return this.changeTitle( this.sumDays(1,30), this.get('prev30Days'), 'in the previous 30 day period');
|
||||
}.property('data'),
|
||||
|
||||
dataReversed: function() {
|
||||
return this.get('data').toArray().reverse();
|
||||
}.property('data')
|
||||
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<th>{{yaxis}}</th>
|
||||
</tr>
|
||||
|
||||
{{#each row in data}}
|
||||
{{#each row in dataReversed}}
|
||||
<tr>
|
||||
<td>{{row.x}}</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user