2017-04-20 08:31:37 +00:00
|
|
|
- page_title 'Edit System Hook'
|
|
|
|
%h3.page-title
|
|
|
|
Edit System Hook
|
|
|
|
|
|
|
|
%p.light
|
|
|
|
#{link_to 'System hooks ', help_page_path('system_hooks/system_hooks'), class: 'vlink'} can be
|
|
|
|
used for binding events when GitLab creates a User or Project.
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
= form_for @hook, as: :hook, url: admin_hook_path, html: { class: 'form-horizontal' } do |f|
|
|
|
|
= render partial: 'form', locals: { form: f, hook: @hook }
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save changes', class: 'btn btn-create'
|
2017-07-20 15:12:06 +00:00
|
|
|
= render 'shared/web_hooks/test_button', triggers: SystemHook::TRIGGERS, hook: @hook
|
2017-04-27 10:08:57 +00:00
|
|
|
= link_to 'Remove', admin_hook_path(@hook), method: :delete, class: 'btn btn-remove pull-right', data: { confirm: 'Are you sure?' }
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
= render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs }
|