mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:18:34 +08:00
f9bdda84ca
1. The events table had broken styling, making each row overflow 2. It had confusing routes: `/:id` for "edit" and `/:id/events` for "show" (now it's `/:id/edit` and `/:id` respectively) 3. There previously was an unused backend action (`#edit`) - now it is used (and `web_hooks/:id/events` route has been removed) 4. There was outdated/misplaced/duplicated CSS 5. And more
43 lines
1.5 KiB
Handlebars
43 lines
1.5 KiB
Handlebars
<div class="web-hook-events-listing"
|
|
{{did-insert this.subscribe}}
|
|
{{will-destroy this.unsubscribe}}
|
|
>
|
|
<DButton
|
|
@icon="paper-plane"
|
|
@label="admin.web_hooks.events.ping"
|
|
@action={{this.ping}}
|
|
@disabled={{not this.pingEnabled}}
|
|
class="webhook-events__ping-button"
|
|
/>
|
|
|
|
{{#if this.events}}
|
|
<LoadMore @selector=".web-hook-events li" @action={{this.loadMore}}>
|
|
<div class="web-hook-events content-list">
|
|
<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>
|
|
|
|
{{#if this.hasIncoming}}
|
|
<a href tabindex="0" {{on "click" this.showInserted}} class="alert alert-info clickable">
|
|
<CountI18n @key="admin.web_hooks.events.incoming" @count={{this.incomingCount}} />
|
|
</a>
|
|
{{/if}}
|
|
|
|
<ul>
|
|
{{#each this.events as |webHookEvent|}}
|
|
<AdminWebHookEvent @model={{webHookEvent}} />
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
|
|
<ConditionalLoadingSpinner @condition={{this.events.loadingMore}} />
|
|
</LoadMore>
|
|
{{else}}
|
|
<p>{{i18n "admin.web_hooks.events.none"}}</p>
|
|
{{/if}}
|
|
</div>
|