mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 06:33:53 +08:00
a914d3230b
Followup to 7d8974d02f
Co-authored-by: David Taylor <david@taylorhq.com>
69 lines
2.2 KiB
Handlebars
69 lines
2.2 KiB
Handlebars
<div class="web-hooks-listing">
|
|
<p>{{i18n "admin.web_hooks.instruction"}}</p>
|
|
|
|
<div class="new-webhook">
|
|
<LinkTo
|
|
@route="adminWebHooks.edit"
|
|
@model="new"
|
|
class="btn btn-default admin-webhooks__new-button"
|
|
>
|
|
{{d-icon "plus"}}
|
|
{{i18n "admin.web_hooks.new"}}
|
|
</LinkTo>
|
|
</div>
|
|
|
|
{{#if this.model}}
|
|
<LoadMore @selector=".web-hooks tr" @action={{this.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_label"}}</th>
|
|
<th>{{i18n "admin.web_hooks.controls"}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.model as |webhook|}}
|
|
<tr>
|
|
<td class="delivery-status">
|
|
<LinkTo @route="adminWebHooks.show" @model={{webhook}}>
|
|
<WebhookStatus
|
|
@deliveryStatuses={{this.deliveryStatuses}}
|
|
@webhook={{webhook}}
|
|
/>
|
|
</LinkTo>
|
|
</td>
|
|
<td class="payload-url">
|
|
<LinkTo @route="adminWebHooks.edit" @model={{webhook}}>
|
|
{{webhook.payload_url}}
|
|
</LinkTo>
|
|
</td>
|
|
<td class="description">{{webhook.description}}</td>
|
|
<td class="controls">
|
|
<LinkTo
|
|
@route="adminWebHooks.edit"
|
|
@model={{webhook}}
|
|
class="btn btn-default no-text"
|
|
title={{i18n "admin.web_hooks.edit"}}
|
|
>
|
|
{{d-icon "far-pen-to-square"}}
|
|
</LinkTo>
|
|
|
|
<DButton
|
|
@action={{fn this.destroyWebhook webhook}}
|
|
@icon="xmark"
|
|
@title="delete"
|
|
class="destroy btn-danger"
|
|
/>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
<ConditionalLoadingSpinner @condition={{this.model.loadingMore}} />
|
|
</LoadMore>
|
|
{{else}}
|
|
<p>{{i18n "admin.web_hooks.none"}}</p>
|
|
{{/if}}
|
|
</div> |