mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:55:06 +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
35 lines
755 B
Handlebars
35 lines
755 B
Handlebars
<LinkTo @route="adminWebHooks" class="go-back">
|
|
{{d-icon "arrow-left"}}
|
|
{{i18n "admin.web_hooks.go_back"}}
|
|
</LinkTo>
|
|
|
|
<div class="admin-webhooks__summary">
|
|
<h1>
|
|
{{this.model.payload_url}}
|
|
|
|
<DButton
|
|
@action={{this.edit}}
|
|
@icon="far-edit"
|
|
title={{i18n "admin.web_hooks.edit"}}
|
|
class="btn no-text admin-webhooks__edit-button"
|
|
/>
|
|
|
|
<DButton
|
|
@action={{this.destroy}}
|
|
@icon="times"
|
|
@title="delete"
|
|
class="destroy btn-danger admin-webhooks__delete-button"
|
|
/>
|
|
</h1>
|
|
|
|
<div>
|
|
<span class="admin-webhooks__description-label">
|
|
{{i18n "admin.web_hooks.description_label"}}:
|
|
</span>
|
|
|
|
{{this.model.description}}
|
|
</div>
|
|
</div>
|
|
|
|
<WebhookEvents @webhookId={{this.model.id}} />
|