gitlab-org--gitlab-foss/app/views/hooks/index.html.haml
2012-03-06 00:29:40 +02:00

21 lines
712 B
Text

= render "projects/project_head"
- if can? current_user, :admin_project, @project
.alert-message.block-message
Post receive hooks for binding events when someone push to repository.
= link_to new_project_hook_path(@project), :class => "btn small", :title => "New Web Hook" do
Add Post Receive Hook
-if @hooks.any?
%table.zebra-striped.borders
- @hooks.each do |hook|
%tr
%td
= link_to project_hook_path(@project, hook) do
= hook.url
%td
= link_to 'Remove', project_hook_path(@project, hook), :confirm => 'Are you sure?', :method => :delete, :class => "danger btn small"
.ui-box
%h5 Hooks request example
.data= render "data_ex"