2018-07-02 23:14:53 -04:00
|
|
|
<div class="web-hooks-listing">
|
|
|
|
<p>{{i18n "admin.web_hooks.instruction"}}</p>
|
|
|
|
<div class="new-webhook">
|
2018-10-24 16:09:36 -04:00
|
|
|
{{#link-to "adminWebHooks.show" "new" tagName="button" classNames="btn btn-default"}}
|
2018-07-04 00:18:11 -04:00
|
|
|
{{d-icon "plus"}} {{i18n "admin.web_hooks.new"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</div>
|
|
|
|
{{#if model}}
|
2019-01-10 05:06:01 -05:00
|
|
|
{{#load-more selector=".web-hooks tr" action=(action "loadMore")}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<table class="web-hooks grid">
|
2016-06-15 13:49:57 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-07-02 23:14:53 -04:00
|
|
|
<th>{{i18n "admin.web_hooks.delivery_status.title"}}</th>
|
|
|
|
<th>{{i18n "admin.web_hooks.payload_url"}}</th>
|
2016-06-15 13:49:57 -04:00
|
|
|
<th>{{i18n "admin.web_hooks.description"}}</th>
|
2018-11-26 16:49:57 -05:00
|
|
|
<th>{{i18n "admin.web_hooks.controls"}}</th>
|
2016-06-15 13:49:57 -04:00
|
|
|
</tr>
|
2020-04-13 11:17:20 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-06-15 13:49:57 -04:00
|
|
|
{{#each model as |webHook|}}
|
2020-04-13 11:17:20 -04:00
|
|
|
<tr>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="delivery-status">{{#link-to "adminWebHooks.showEvents" webHook.id}}{{admin-web-hook-status deliveryStatuses=deliveryStatuses model=webHook}}{{/link-to}}</td>
|
|
|
|
<td class="payload-url">{{#link-to "adminWebHooks.show" webHook}}{{webHook.payload_url}}{{/link-to}}</td>
|
2016-06-15 13:49:57 -04:00
|
|
|
<td class="description">{{webHook.description}}</td>
|
|
|
|
<td class="controls">
|
2018-11-26 16:49:57 -05:00
|
|
|
{{#link-to "adminWebHooks.show" webHook tagName="button" classNames="btn btn-default no-text"}}{{d-icon "far-edit"}}{{/link-to}}
|
2019-07-16 11:13:44 -04:00
|
|
|
{{d-button class="destroy btn-danger" action=(action "destroy") actionParam=webHook icon="times"}}
|
2020-04-13 11:17:20 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-06-15 13:49:57 -04:00
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{conditional-loading-spinner condition=model.loadingMore}}
|
|
|
|
{{/load-more}}
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.web_hooks.none"}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|