discourse-data-explorer/assets/javascripts/discourse/templates/group-reports-index.hbs

35 lines
804 B
Handlebars

<section class="user-content">
<table class="group-reports">
<thead>
<th>
{{i18n "explorer.report_name"}}
</th>
<th>
{{i18n "explorer.query_description"}}
</th>
<th>
{{i18n "explorer.query_time"}}
</th>
</thead>
<tbody>
{{#each this.model.queries as |query|}}
<tr>
<td>
<LinkTo
@route="group.reports.show"
@models={{array group.name query.id}}
>
{{query.name}}
</LinkTo>
</td>
<td>{{query.description}}</td>
<td>
{{#if query.last_run_at}}
{{bound-date query.last_run_at}}
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</section>