2017-08-17 14:53:50 +00:00
|
|
|
- add_to_breadcrumbs "System Hooks", admin_hooks_path
|
2017-04-20 08:31:37 +00:00
|
|
|
- page_title 'Edit System Hook'
|
|
|
|
%h3.page-title
|
|
|
|
Edit System Hook
|
|
|
|
|
|
|
|
%p.light
|
2018-12-05 12:46:05 +00:00
|
|
|
#{link_to 'System hooks ', help_page_path('system_hooks/system_hooks')} can be
|
2017-04-20 08:31:37 +00:00
|
|
|
used for binding events when GitLab creates a User or Project.
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
2018-04-12 20:11:22 +00:00
|
|
|
= form_for @hook, as: :hook, url: admin_hook_path do |f|
|
2017-04-20 08:31:37 +00:00
|
|
|
= render partial: 'form', locals: { form: f, hook: @hook }
|
|
|
|
.form-actions
|
2018-09-18 09:58:22 +00:00
|
|
|
= f.submit 'Save changes', class: 'btn btn-success'
|
2017-12-08 13:17:15 +00:00
|
|
|
= render 'shared/web_hooks/test_button', triggers: SystemHook.triggers, hook: @hook
|
2018-04-09 17:42:45 +00:00
|
|
|
= link_to 'Remove', admin_hook_path(@hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' }
|
2017-04-27 10:08:57 +00:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
= render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs }
|