gitlab-org--gitlab-foss/app/views/admin/hooks/index.html.haml

34 lines
1.3 KiB
Text
Raw Normal View History

2017-04-20 04:31:37 -04:00
- page_title 'System Hooks'
2013-10-08 05:06:46 -04:00
%h3.page-title
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
= 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 }
.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
- if @hooks.any?
.panel.panel-default
.panel-heading
System hooks (#{@hooks.count})
%ul.content-list
- @hooks.each do |hook|
%li
.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'
.monospace= hook.url
%div
- %w(repository_update_events push_events tag_push_events issues_events note_events merge_requests_events job_events).each do |trigger|
- 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'}