2012-02-20 01:39:03 -05:00
|
|
|
= render "projects/project_head"
|
2012-01-03 19:07:56 -05:00
|
|
|
|
2012-01-28 05:40:17 -05:00
|
|
|
- if can? current_user, :admin_project, @project
|
2012-02-11 16:22:33 -05:00
|
|
|
.alert-message.block-message
|
2012-01-28 05:40:17 -05:00
|
|
|
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
|
2012-01-08 06:20:20 -05:00
|
|
|
|
2012-03-05 17:29:40 -05:00
|
|
|
-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"
|
2012-01-28 05:40:17 -05:00
|
|
|
|
2012-03-05 17:29:40 -05:00
|
|
|
.ui-box
|
|
|
|
%h5 Hooks request example
|
|
|
|
.data= render "data_ex"
|