Add administrative webhooks (#18510)
* Add administrative webhooks * Fix error when webhook is deleted before delivery worker runs
This commit is contained in:
parent
17ba5e1e61
commit
a2871cd747
33 changed files with 530 additions and 8 deletions
18
app/views/admin/webhooks/index.html.haml
Normal file
18
app/views/admin/webhooks/index.html.haml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- content_for :page_title do
|
||||
= t('admin.webhooks.title')
|
||||
|
||||
- content_for :heading_actions do
|
||||
= link_to t('admin.webhooks.add_new'), new_admin_webhook_path, class: 'button' if can?(:create, :webhook)
|
||||
|
||||
%p= t('admin.webhooks.description_html')
|
||||
|
||||
%hr.spacer/
|
||||
|
||||
- if @webhooks.empty?
|
||||
%div.muted-hint.center-text
|
||||
= t 'admin.webhooks.empty'
|
||||
- else
|
||||
.applications-list
|
||||
= render partial: 'webhook', collection: @webhooks
|
||||
|
||||
= paginate @webhooks
|
Loading…
Add table
Add a link
Reference in a new issue