discourse/app/assets/javascripts/admin/templates/components/admin-report-counts.hbs

25 lines
800 B
Handlebars
Raw Normal View History

2015-05-15 00:53:33 +08:00
<td class="title">
{{#if report.icon}}
{{d-icon report.icon}}
2015-05-15 00:53:33 +08:00
{{/if}}
<a href="{{report.reportUrl}}">{{report.title}}</a>
</td>
2018-05-30 22:32:43 +08:00
<td class="value">{{number report.todayCount ceil=true}}</td>
<td class="value {{report.yesterdayTrend}}" title={{report.yesterdayCountTitle}}>
2018-05-30 22:32:43 +08:00
{{number report.yesterdayCount ceil=true}} {{d-icon report.yesterdayTrendIcon}}
</td>
<td class="value {{report.sevenDaysTrend}}" title={{report.sevenDaysCountTitle}}>
2018-05-30 22:32:43 +08:00
{{number report.lastSevenDaysCount ceil=true}} {{d-icon report.sevenDaysTrendIcon}}
</td>
<td class="value {{report.thirtyDaysTrend}}" title={{report.thirtyDaysCountTitle}}>
2018-05-30 22:32:43 +08:00
{{number report.lastThirtyDaysCount ceil=true}} {{d-icon report.thirtyDaysTrendIcon}}
</td>
{{#if allTime}}
<td class="value">{{number report.total}}</td>
{{/if}}