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>
|