discourse-data-explorer/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs

26 lines
700 B
Handlebars

{{text-field value=newQueryName placeholderKey="explorer.create_placeholder"}}
{{d-button action="create" label="explorer.create" icon="plus"}}
{{d-button action="importQuery" label="explorer.import.label" icon="upload" class="import-button"}}
<h3>Queries</h3>
<table class="query-list">
<thead>
<tr>
<th class="q-name">Name</th>
<th class="q-desc">Description</th>
</tr>
</thead>
<tbody>
{{#each content as |query|}}
<tr {{action "selectItem" query}}>
<td class="q-name">{{query.name}}</td>
<td class="q-desc">{{query.description}}</td>
</tr>
{{/each}}
</tbody>
</table>
{{render "admin/plugins-explorer-show" selectedItem}}
{{! results }}