gitlab-org--gitlab-foss/app/views/projects/hooks/edit.html.haml

21 lines
946 B
Text
Raw Normal View History

- 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
= 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-20 04:31:37 -04:00
= f.submit 'Save changes', class: 'btn btn-create'
= render 'shared/web_hooks/test_button', triggers: ProjectHook.triggers, hook: @hook
= link_to 'Remove', project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' }
%hr
= render partial: 'projects/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs, project: @project }