2018-05-03 09:41:41 -04:00
|
|
|
{{#conditional-loading-section isLoading=isLoading title=report.title}}
|
2018-04-16 04:42:06 -04:00
|
|
|
<div class="chart-title">
|
2018-05-03 09:41:41 -04:00
|
|
|
<h3 title={{report.description}}>
|
2018-05-13 21:33:36 -04:00
|
|
|
<a href="{{report.reportUrl}}">
|
|
|
|
{{report.title}}
|
|
|
|
</a>
|
2018-05-03 09:41:41 -04:00
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="chart-trend {{trend}}">
|
2018-05-10 23:30:21 -04:00
|
|
|
{{#if average}}
|
|
|
|
<span title="{{report.trendTitle}}">
|
2018-05-14 20:17:17 -04:00
|
|
|
{{report.currentAverage}}{{if percent "%"}}
|
2018-05-10 23:30:21 -04:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span title="{{report.trendTitle}}">
|
|
|
|
{{number report.currentTotal noTitle="true"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2018-05-03 09:41:41 -04:00
|
|
|
|
|
|
|
{{#if trendIcon}}
|
|
|
|
{{d-icon trendIcon}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-04-16 04:42:06 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="chart-container">
|
|
|
|
{{#if oneDataPoint}}
|
|
|
|
<span class="data-point">
|
2018-05-03 09:41:41 -04:00
|
|
|
{{number values.lastObject.y}}
|
2018-04-16 04:42:06 -04:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<canvas class="chart-canvas"></canvas>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-05-03 09:41:41 -04:00
|
|
|
{{/conditional-loading-section}}
|