2017-04-27 06:08:57 -04:00
|
|
|
- page_title 'Integrations'
|
2017-04-20 04:31:37 -04:00
|
|
|
|
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
%p
|
|
|
|
#{link_to 'Webhooks', help_page_path('user/project/integrations/webhooks')} can be
|
|
|
|
used for binding events when something is happening within the project.
|
|
|
|
.col-lg-9.append-bottom-default
|
2017-06-29 13:06:35 -04:00
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @hook], as: :hook, url: project_hook_path(@project, @hook) do |f|
|
2017-04-20 04:31:37 -04:00
|
|
|
= render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook }
|
2017-04-27 06:08:57 -04:00
|
|
|
|
2017-04-20 04:31:37 -04:00
|
|
|
= f.submit 'Save changes', class: 'btn btn-create'
|
2017-12-08 08:17:15 -05:00
|
|
|
= render 'shared/web_hooks/test_button', triggers: ProjectHook.triggers, hook: @hook
|
2018-04-09 13:42:45 -04:00
|
|
|
= link_to 'Remove', project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' }
|
2017-04-27 06:08:57 -04:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
= render partial: 'projects/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs, project: @project }
|