discourse/app/assets/javascripts/admin/templates/components/dashboard-inline-table.hbs
Joffrey JAFFEUX ba0cec2091
UX: minor fixes to new dashboard UI
- adds a link to search log
- display a text if log search queries is disabled
- adds link to trust level and user types
- adds a description for eeach report when browsing a report directly
2018-05-14 14:23:51 +02:00

33 lines
734 B
Handlebars

{{#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>
<tr>
{{#unless hasBlock}}
{{#each values as |value|}}
<td>{{number value}}</td>
{{/each}}
{{else}}
{{yield (hash report=report)}}
{{/unless}}
</tr>
</tbody>
</table>
</div>
{{/conditional-loading-section}}