mirror of
https://github.com/discourse/discourse.git
synced 2025-01-09 12:22:36 +08:00
9554d9c56a
- tooltips - revert chart title UI - reduce period chooser font-size - localize dates of data points - fix a bug where multiple reports were loaded at the same time - fix a bug where % was not showing anymore - remove spacing at the top - remove loadingTitle feature (Loading...%report name%) incompatible with new hijack design
34 lines
984 B
Handlebars
34 lines
984 B
Handlebars
{{#conditional-loading-section isLoading=isLoading}}
|
|
{{#each reportsForPeriod as |report|}}
|
|
<div class="status">
|
|
<h4 class="title">
|
|
<a href="{{report.reportUrl}}">
|
|
{{report.title}}
|
|
</a>
|
|
|
|
<span class="info" data-tooltip="{{report.description}}">
|
|
{{d-icon "question-circle"}}
|
|
</span>
|
|
</h4>
|
|
|
|
<div class="trend {{report.trend}}">
|
|
<span class="trend-value" title="{{report.trendTitle}}">
|
|
{{#if report.average}}
|
|
{{number report.currentAverage}}{{#if report.percent}}%{{/if}}
|
|
{{else}}
|
|
{{number report.currentTotal noTitle="true"}}{{#if report.percent}}%{{/if}}
|
|
{{/if}}
|
|
</span>
|
|
|
|
{{#if report.trendIcon}}
|
|
{{d-icon report.trendIcon class="trend-icon"}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
|
|
<div class="chart-canvas-container">
|
|
<canvas class="chart-canvas"></canvas>
|
|
</div>
|
|
{{/conditional-loading-section}}
|