FEATURE: display report total value when showing report

This commit is contained in:
Joffrey JAFFEUX 2018-06-21 18:17:22 +02:00 committed by GitHub
parent a1c0d0e6e5
commit a41057aa6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -13,5 +13,16 @@
</td>
</tr>
{{/each}}
{{#if model.total}}
<tr class="total-for-period">
<td class="x-value">
{{i18n 'admin.dashboard.reports.total_for_period'}}
</td>
<td>
{{model.total}}
</td>
</tr>
{{/if}}
</table>
{{/if}}

View File

@ -178,6 +178,12 @@ $mobile-breakpoint: 700px;
}
}
tr.total-for-period {
td {
font-weight: 700;
}
}
&.web_crawlers {
tr {
th:nth-of-type(1) {

View File

@ -2774,6 +2774,7 @@ en:
end_date: "End Date"
groups: "All groups"
disabled: "This report is disabled"
total_for_period: "Total for period"
trending_search:
more: '<a href="/admin/logs/search_logs">Search logs</a>'
disabled: 'Trending search report is disabled. Enable <a href="/admin/site_settings/category/all_results?filter=log%20search%20queries">log search queries</a> to collect data.'