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

38 lines
798 B
Handlebars

{{#if isDisabled}}
{{{i18n disabledLabel}}}
{{else}}
{{#conditional-loading-section isLoading=isLoading title=report.title}}
<div class="table-title">
<h3>{{report.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>
{{#each values as |value|}}
<tr>
{{#each value as |v|}}
<td>{{v}}</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
{{yield}}
</div>
{{/conditional-loading-section}}
{{/if}}