2016-06-15 13:49:57 -04:00
|
|
|
<div class="web-hook-direction">
|
2022-07-06 04:37:54 -04:00
|
|
|
<LinkTo @route="adminWebHooks" class="btn">
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "list"}} {{i18n "admin.web_hooks.events.go_list"}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2022-07-05 13:41:31 -04:00
|
|
|
<DButton @icon="paper-plane" @label="admin.web_hooks.events.ping" @action={{action "ping"}} @disabled={{this.pingDisabled}} />
|
2022-07-06 04:37:54 -04:00
|
|
|
<LinkTo @route="adminWebHooks.show" @model={{this.model.extras.web_hook_id}} class="btn">
|
2018-11-26 16:49:57 -05:00
|
|
|
{{d-icon "far-edit"}} {{i18n "admin.web_hooks.events.go_details"}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2016-06-15 13:49:57 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="web-hook-events-listing">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.model}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<LoadMore @selector=".web-hook-events li" @action={{action "loadMore"}}>
|
2018-02-26 21:34:46 -05:00
|
|
|
<div class="web-hook-events content-list">
|
2016-09-15 00:57:04 -04:00
|
|
|
<div class="heading-container">
|
|
|
|
<div class="col heading first status">{{i18n "admin.web_hooks.events.status"}}</div>
|
|
|
|
<div class="col heading event-id">{{i18n "admin.web_hooks.events.event_id"}}</div>
|
|
|
|
<div class="col heading timestamp">{{i18n "admin.web_hooks.events.timestamp"}}</div>
|
|
|
|
<div class="col heading completion">{{i18n "admin.web_hooks.events.completion"}}</div>
|
|
|
|
<div class="col heading actions">{{i18n "admin.web_hooks.events.actions"}}</div>
|
|
|
|
<div class="clearfix"></div>
|
2020-04-13 11:17:20 -04:00
|
|
|
</div>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.hasIncoming}}
|
2022-10-04 07:27:26 -04:00
|
|
|
<a href tabindex="0" {{action "showInserted"}} class="alert alert-info clickable">
|
2022-07-05 13:41:31 -04:00
|
|
|
<CountI18n @key="admin.web_hooks.events.incoming" @count={{this.incomingCount}} />
|
2020-04-13 11:17:20 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
<ul>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.model as |webHookEvent|}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<AdminWebHookEvent @model={{webHookEvent}} />
|
2016-06-15 13:49:57 -04:00
|
|
|
{{/each}}
|
2020-04-13 11:17:20 -04:00
|
|
|
</ul>
|
2016-09-15 00:57:04 -04:00
|
|
|
</div>
|
2022-07-05 13:41:31 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.model.loadingMore}} />
|
2022-06-30 06:30:50 -04:00
|
|
|
</LoadMore>
|
2016-06-15 13:49:57 -04:00
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.web_hooks.events.none"}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|