2015-09-11 14:41:01 +05:30
|
|
|
- page_title "System Hooks"
|
2014-09-02 18:07:02 +05:30
|
|
|
%h3.page-title
|
|
|
|
System hooks
|
|
|
|
|
|
|
|
%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_hooks_path, html: { class: 'form-horizontal' } do |f|
|
|
|
|
-if @hook.errors.any?
|
|
|
|
.alert.alert-danger
|
|
|
|
- @hook.errors.full_messages.each do |msg|
|
|
|
|
%p= msg
|
|
|
|
.form-group
|
|
|
|
= f.label :url, "URL:", class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :url, class: "form-control"
|
2015-09-25 12:07:36 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :enable_ssl_verification, "SSL verification", class: 'control-label checkbox'
|
|
|
|
.col-sm-10
|
|
|
|
.checkbox
|
|
|
|
= f.label :enable_ssl_verification do
|
|
|
|
= f.check_box :enable_ssl_verification
|
|
|
|
%strong Enable SSL verification
|
2014-09-02 18:07:02 +05:30
|
|
|
.form-actions
|
|
|
|
= f.submit "Add System Hook", class: "btn btn-create"
|
|
|
|
%hr
|
|
|
|
|
|
|
|
-if @hooks.any?
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
System hooks (#{@hooks.count})
|
|
|
|
%ul.well-list
|
|
|
|
- @hooks.each do |hook|
|
|
|
|
%li
|
|
|
|
.list-item-name
|
|
|
|
= link_to admin_hook_path(hook) do
|
|
|
|
%strong= hook.url
|
2015-09-25 12:07:36 +05:30
|
|
|
%p SSL Verification: #{hook.enable_ssl_verification ? "enabled" : "disabled"}
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.pull-right
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to 'Test Hook', admin_hook_test_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"
|