mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 22:29:34 +08:00
41 lines
1020 B
Handlebars
41 lines
1020 B
Handlebars
{{#conditional-loading-section isLoading=isLoading title=loadingTitle}}
|
|
<div class="table-title">
|
|
<h3>{{title}}</h3>
|
|
|
|
{{#if help}}
|
|
<a href="{{helpPage}}">{{i18n help}}</a>
|
|
{{/if}}
|
|
</div>
|
|
|
|
{{#each-in reports as |key report|}}
|
|
<div class="table-container">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
{{#if report.labels}}
|
|
{{#each report.labels as |label|}}
|
|
<th>{{label}}</th>
|
|
{{/each}}
|
|
{{else}}
|
|
{{#each report.data as |data|}}
|
|
<th>{{data.x}}</th>
|
|
{{/each}}
|
|
{{/if}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#unless hasBlock}}
|
|
{{#each report.data as |data|}}
|
|
<tr>
|
|
<td>{{number data.y}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
{{else}}
|
|
{{yield (hash report=report)}}
|
|
{{/unless}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{/each-in}}
|
|
{{/conditional-loading-section}}
|