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

36 lines
1 KiB
Text
Raw Normal View History

2013-10-08 05:06:46 -04:00
%h3.page-title
System hooks
2013-10-08 05:06:46 -04:00
%p.light
#{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be
used for binding events when GitLab creates a User or Project.
%hr
2012-07-12 15:10:34 -04:00
2012-08-23 17:04:43 -04:00
= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
2012-07-12 15:10:34 -04:00
-if @hook.errors.any?
.alert.alert-danger
2012-07-12 15:10:34 -04:00
- @hook.errors.full_messages.each do |msg|
%p= msg
.form-group
2012-07-12 15:10:34 -04:00
= f.label :url, "URL:"
.col-sm-10
= f.text_field :url, class: "text_field input-lg input-xpadding"
2012-07-12 15:10:34 -04:00
 
2013-04-18 10:28:09 -04:00
= f.submit "Add System Hook", class: "btn btn-create"
2012-07-12 15:10:34 -04:00
%hr
-if @hooks.any?
.ui-box
.title
System hooks (#{@hooks.count})
%ul.well-list
- @hooks.each do |hook|
%li
.pull-right
= link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small"
= link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-remove btn-small"
2012-07-12 15:10:34 -04:00
= link_to admin_hook_path(hook) do
%strong= hook.url