2016-09-15 12:57:04 +08:00
|
|
|
<div class="col first status">
|
2022-07-06 01:41:31 +08:00
|
|
|
<span class={{this.statusColorClasses}}>{{this.model.status}}</span>
|
2016-06-16 01:49:57 +08:00
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
<div class="col event-id">{{this.model.id}}</div>
|
|
|
|
<div class="col timestamp">{{this.createdAt}}</div>
|
|
|
|
<div class="col completion">{{this.completion}}</div>
|
2016-06-16 01:49:57 +08:00
|
|
|
<div class="col actions">
|
2022-07-06 01:41:31 +08:00
|
|
|
<DButton @icon={{this.expandRequestIcon}} @action={{action "toggleRequest"}} @label="admin.web_hooks.events.request" />
|
|
|
|
<DButton @icon={{this.expandResponseIcon}} @action={{action "toggleResponse"}} @label="admin.web_hooks.events.response" />
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton @icon="sync" @action={{action "redeliver"}} @label="admin.web_hooks.events.redeliver" />
|
2016-06-16 01:49:57 +08:00
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.expandDetails}}
|
2016-06-16 01:49:57 +08:00
|
|
|
<div class="details">
|
2019-01-10 18:06:01 +08:00
|
|
|
<h3>{{i18n "admin.web_hooks.events.headers"}}</h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
<pre><code>{{this.headers}}</code></pre>
|
|
|
|
<h3>{{this.bodyLabel}}</h3>
|
|
|
|
<pre><code>{{this.body}}</code></pre>
|
2016-06-16 01:49:57 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|