discourse/app/assets/javascripts/admin/templates/components/admin-report-counts.hbs
Joffrey JAFFEUX 94b1a8c841
UX: disables all time col in activity metrics new dashboard
This commit also makes it work for old dashboard.
2018-05-14 16:04:54 +02:00

25 lines
854 B
Handlebars

<td class="title">
{{#if report.icon}}
{{d-icon report.icon}}
{{/if}}
<a href="{{report.reportUrl}}">{{report.title}}</a>
</td>
<td class="value">{{number report.todayCount}}</td>
<td class="value {{report.yesterdayTrend}}" title={{report.yesterdayCountTitle}}>
{{number report.yesterdayCount}} {{d-icon "caret-up" class="up"}} {{d-icon "caret-down" class="down"}}
</td>
<td class="value {{report.sevenDayTrend}}" title={{report.sevenDayCountTitle}}>
{{number report.lastSevenDaysCount}} {{d-icon "caret-up" class="up"}} {{d-icon "caret-down" class="down"}}
</td>
<td class="value {{report.thirtyDayTrend}}" title={{report.thirtyDayCountTitle}}>
{{number report.lastThirtyDaysCount}} {{d-icon "caret-up" class="up"}} {{d-icon "caret-down" class="down"}}
</td>
{{#if allTime}}
<td class="value">{{number report.total}}</td>
{{/if}}