mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 14:03:42 +08:00
c3fd91670e
Re-lands #16119 and #17298 * Update eslint-config-discourse * Update linting workflow * Prettier-ignore stuff * Update template-lint config * Auto-fix template issues * Fix various template issues Mostly incorrect attributes and unused templates * Prettier js files * Fix template auto-fix regressions * Small css tweak Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
39 lines
1.7 KiB
Handlebars
39 lines
1.7 KiB
Handlebars
<div class="web-hooks-listing">
|
|
<p>{{i18n "admin.web_hooks.instruction"}}</p>
|
|
<div class="new-webhook">
|
|
<LinkTo @route="adminWebHooks.show" @model="new" class="btn btn-default">
|
|
{{d-icon "plus"}} {{i18n "admin.web_hooks.new"}}
|
|
</LinkTo>
|
|
</div>
|
|
{{#if this.model}}
|
|
<LoadMore @selector=".web-hooks tr" @action={{action "loadMore"}}>
|
|
<table class="web-hooks grid">
|
|
<thead>
|
|
<tr>
|
|
<th>{{i18n "admin.web_hooks.delivery_status.title"}}</th>
|
|
<th>{{i18n "admin.web_hooks.payload_url"}}</th>
|
|
<th>{{i18n "admin.web_hooks.description"}}</th>
|
|
<th>{{i18n "admin.web_hooks.controls"}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.model as |webHook|}}
|
|
<tr>
|
|
<td class="delivery-status"><LinkTo @route="adminWebHooks.showEvents" @model={{webHook.id}}><AdminWebHookStatus @deliveryStatuses={{this.deliveryStatuses}} @model={{webHook}} /></LinkTo></td>
|
|
<td class="payload-url"><LinkTo @route="adminWebHooks.show" @model={{webHook}}>{{webHook.payload_url}}</LinkTo></td>
|
|
<td class="description">{{webHook.description}}</td>
|
|
<td class="controls">
|
|
<LinkTo @route="adminWebHooks.show" @model={{webHook}} class="btn btn-default no-text">{{d-icon "far-edit"}}</LinkTo>
|
|
<DButton @class="destroy btn-danger" @action={{action "destroy"}} @actionParam={{webHook}} @icon="times" />
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
<ConditionalLoadingSpinner @condition={{this.model.loadingMore}} />
|
|
</LoadMore>
|
|
{{else}}
|
|
<p>{{i18n "admin.web_hooks.none"}}</p>
|
|
{{/if}}
|
|
</div>
|