2017-04-20 04:31:37 -04:00
|
|
|
- page_title 'System Hooks'
|
2013-10-08 05:06:46 -04:00
|
|
|
%h3.page-title
|
2013-12-13 06:12:54 -05:00
|
|
|
System hooks
|
2013-10-08 05:06:46 -04:00
|
|
|
|
|
|
|
%p.light
|
2017-04-20 04:31:37 -04:00
|
|
|
#{link_to 'System hooks ', help_page_path('system_hooks/system_hooks'), class: 'vlink'} can be
|
2013-10-08 05:06:46 -04:00
|
|
|
used for binding events when GitLab creates a User or Project.
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
2014-01-04 12:32:06 -05:00
|
|
|
= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-horizontal' } do |f|
|
2017-04-20 04:31:37 -04:00
|
|
|
= render partial: 'form', locals: { form: f, hook: @hook }
|
2014-01-04 12:32:06 -05:00
|
|
|
.form-actions
|
2017-04-20 04:31:37 -04:00
|
|
|
= f.submit 'Add system hook', class: 'btn btn-create'
|
2012-07-12 15:10:34 -04:00
|
|
|
%hr
|
|
|
|
|
2016-12-23 05:27:41 -05:00
|
|
|
- if @hooks.any?
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-12-13 06:12:54 -05:00
|
|
|
System hooks (#{@hooks.count})
|
2016-04-19 05:08:02 -04:00
|
|
|
%ul.content-list
|
2013-12-13 06:12:54 -05:00
|
|
|
- @hooks.each do |hook|
|
|
|
|
%li
|
2016-04-19 05:08:02 -04:00
|
|
|
.controls
|
2017-04-20 04:31:37 -04:00
|
|
|
= link_to 'Test hook', test_admin_hook_path(hook), class: 'btn btn-sm'
|
|
|
|
= link_to 'Edit', edit_admin_hook_path(hook), class: 'btn btn-sm'
|
|
|
|
= link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-remove btn-sm'
|
2016-04-19 05:08:02 -04:00
|
|
|
.monospace= hook.url
|
|
|
|
%div
|
2017-05-15 11:11:45 -04:00
|
|
|
- %w(repository_update_events push_events tag_push_events issues_events note_events merge_requests_events job_events).each do |trigger|
|
2016-04-19 05:08:02 -04:00
|
|
|
- if hook.send(trigger)
|
|
|
|
%span.label.label-gray= trigger.titleize
|
2017-04-20 04:31:37 -04:00
|
|
|
%span.label.label-gray SSL Verification: #{hook.enable_ssl_verification ? 'enabled' : 'disabled'}
|