mirror of
https://github.com/discourse/discourse.git
synced 2025-01-23 14:42:01 +08:00
32 lines
848 B
Handlebars
32 lines
848 B
Handlebars
{{#conditional-loading-section isLoading=isLoading}}
|
|
<div class="table-title">
|
|
<h3>{{title}}</h3>
|
|
</div>
|
|
|
|
{{#each reportsForPeriod as |report|}}
|
|
<div class="table-container">
|
|
{{#unless hasBlock}}
|
|
{{#each report.data as |data|}}
|
|
<div class="table-cell">
|
|
<span class="label">
|
|
{{#if data.icon}}
|
|
{{d-icon data.icon}}
|
|
{{/if}}
|
|
{{data.x}}:
|
|
</span>
|
|
<span class="value">
|
|
{{#if data.url}}
|
|
<a href="{{data.url}}">{{number data.y}}</a>
|
|
{{else}}
|
|
{{number data.y}}
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
{{/each}}
|
|
{{else}}
|
|
{{yield (hash report=report)}}
|
|
{{/unless}}
|
|
</div>
|
|
{{/each}}
|
|
{{/conditional-loading-section}}
|