Dashboard metrics link to their report pages
This commit is contained in:
parent
1c5613cdfa
commit
dab49c70bb
|
@ -1,4 +1,8 @@
|
|||
Discourse.Report = Discourse.Model.extend({});
|
||||
Discourse.Report = Discourse.Model.extend({
|
||||
reportUrl: function() {
|
||||
return("/admin/reports/" + this.get('type'));
|
||||
}.property('type')
|
||||
});
|
||||
|
||||
Discourse.Report.reopenClass({
|
||||
find: function(type) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<tr>
|
||||
<td class="title">{{title}}</td>
|
||||
<td class="title"><a {{bindAttr href="reportUrl"}}>{{title}}</a></td>
|
||||
<td class="value">{{valueAtDaysAgo data 0}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 1}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 7}}</td>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<tr>
|
||||
<td class="title">{{title}}</td>
|
||||
<td class="title"><a {{bindAttr href="reportUrl"}}>{{title}}</a></td>
|
||||
<td class="value">{{valueAtDaysAgo data 0}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 1}}</td>
|
||||
<td class="value">{{sumLast data 7}}</td>
|
||||
|
|
Loading…
Reference in New Issue