mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 10:34:01 +08:00
035d92d2e1
* help texts * renaming of components to dashboard-* * use number formatter * adjust trend position
27 lines
607 B
Handlebars
27 lines
607 B
Handlebars
{{#conditional-loading-spinner condition=isLoading}}
|
|
<div class="chart-title">
|
|
<h3>{{title}}</h3>
|
|
|
|
{{#if help}}
|
|
{{d-icon "question-circle" title=help}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="chart-container">
|
|
{{#if oneDataPoint}}
|
|
<span class="data-point">
|
|
{{chartData.lastObject.y}}
|
|
</span>
|
|
{{else}}
|
|
<div class="chart-trend {{trend}}">
|
|
<span>{{number total}}</span>
|
|
|
|
{{#if trendIcon}}
|
|
{{d-icon trendIcon}}
|
|
{{/if}}
|
|
</div>
|
|
<canvas class="chart-canvas"></canvas>
|
|
{{/if}}
|
|
</div>
|
|
{{/conditional-loading-spinner}}
|