discourse/app/assets/javascripts/admin/templates/components/dashboard-inline-table.hbs

29 lines
586 B
Handlebars
Raw Normal View History

{{#conditional-loading-spinner condition=isLoading}}
<div class="table-title">
<h3>{{title}}</h3>
{{#if help}}
<a href="{{helpPage}}">{{i18n help}}</a>
{{/if}}
</div>
<div class="table-container">
<table>
<thead>
<tr>
{{#each labels as |label|}}
<th>{{label}}</th>
{{/each}}
</tr>
</thead>
<tbody>
<tr>
{{#each dataset as |data|}}
<td>{{number data}}</td>
{{/each}}
</tr>
</tbody>
</table>
</div>
{{/conditional-loading-spinner}}