2018-07-03 11:14:53 +08:00
|
|
|
|
|
|
|
<div class='web-hooks-listing'>
|
|
|
|
<p>{{i18n 'admin.web_hooks.instruction'}}</p>
|
|
|
|
<div class='new-webhook'>
|
2018-10-25 04:09:36 +08:00
|
|
|
{{#link-to 'adminWebHooks.show' 'new' tagName='button' classNames='btn btn-default'}}
|
2018-07-04 12:18:11 +08:00
|
|
|
{{d-icon 'plus'}} {{i18n 'admin.web_hooks.new'}}
|
|
|
|
{{/link-to}}
|
|
|
|
</div>
|
|
|
|
{{#if model}}
|
2019-01-10 18:06:01 +08:00
|
|
|
{{#load-more 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>
|
|
|
|
<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 model as |webHook|}}
|
|
|
|
<tr>
|
2018-07-03 11:14:53 +08: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-16 01:49:57 +08:00
|
|
|
<td class='description'>{{webHook.description}}</td>
|
|
|
|
<td class='controls'>
|
2018-11-27 05:49:57 +08:00
|
|
|
{{#link-to 'adminWebHooks.show' webHook tagName='button' classNames='btn btn-default no-text'}}{{d-icon 'far-edit'}}{{/link-to}}
|
2019-07-16 23:13:44 +08:00
|
|
|
{{d-button class="destroy btn-danger" action=(action "destroy") actionParam=webHook icon="times"}}
|
2016-06-16 01:49:57 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{conditional-loading-spinner condition=model.loadingMore}}
|
|
|
|
{{/load-more}}
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n 'admin.web_hooks.none'}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|