2018-07-03 11:14:53 +08:00
|
|
|
<div class="web-hooks-listing">
|
|
|
|
<p>{{i18n "admin.web_hooks.instruction"}}</p>
|
|
|
|
<div class="new-webhook">
|
2022-06-30 18:30:50 +08:00
|
|
|
<LinkTo @route="adminWebHooks.show" @model="new" @tagName="button" @classNames="btn btn-default">
|
2018-07-04 12:18:11 +08:00
|
|
|
{{d-icon "plus"}} {{i18n "admin.web_hooks.new"}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2018-07-04 12:18:11 +08:00
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.model}}
|
2022-06-30 18:30:50 +08:00
|
|
|
<LoadMore @selector=".web-hooks tr" @action={{action "loadMore"}}>
|
2018-07-03 11:14:53 +08:00
|
|
|
<table class="web-hooks grid">
|
2016-06-16 01:49:57 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-07-03 11:14:53 +08:00
|
|
|
<th>{{i18n "admin.web_hooks.delivery_status.title"}}</th>
|
|
|
|
<th>{{i18n "admin.web_hooks.payload_url"}}</th>
|
2016-06-16 01:49:57 +08:00
|
|
|
<th>{{i18n "admin.web_hooks.description"}}</th>
|
2018-11-27 05:49:57 +08:00
|
|
|
<th>{{i18n "admin.web_hooks.controls"}}</th>
|
2016-06-16 01:49:57 +08:00
|
|
|
</tr>
|
2020-04-13 23:17:20 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#each this.model as |webHook|}}
|
2020-04-13 23:17:20 +08:00
|
|
|
<tr>
|
2022-07-06 01:41:31 +08:00
|
|
|
<td class="delivery-status"><LinkTo @route="adminWebHooks.showEvents" @model={{webHook.id}}><AdminWebHookStatus @deliveryStatuses={{this.deliveryStatuses}} @model={{webHook}} /></LinkTo></td>
|
2022-06-30 18:30:50 +08:00
|
|
|
<td class="payload-url"><LinkTo @route="adminWebHooks.show" @model={{webHook}}>{{webHook.payload_url}}</LinkTo></td>
|
2016-06-16 01:49:57 +08:00
|
|
|
<td class="description">{{webHook.description}}</td>
|
|
|
|
<td class="controls">
|
2022-06-30 18:30:50 +08:00
|
|
|
<LinkTo @route="adminWebHooks.show" @model={{webHook}} @tagName="button" @classNames="btn btn-default no-text">{{d-icon "far-edit"}}</LinkTo>
|
|
|
|
<DButton @class="destroy btn-danger" @action={{action "destroy"}} @actionParam={{webHook}} @icon="times" />
|
2020-04-13 23:17:20 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-06-16 01:49:57 +08:00
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-07-06 01:41:31 +08:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.model.loadingMore}} />
|
2022-06-30 18:30:50 +08:00
|
|
|
</LoadMore>
|
2016-06-16 01:49:57 +08:00
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.web_hooks.none"}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|