summaryrefslogtreecommitdiff
path: root/app/views/projects/hooks/edit.html.haml
blob: 4944e0c8041e22f1c0e25c422d35358f7eb47bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- page_title 'Integrations'
= render 'projects/settings/head'

.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|
      = render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook }

      = f.submit 'Save changes', class: 'btn btn-create'
      = link_to 'Test hook', test_project_hook_path(@project, @hook), class: 'btn btn-default'
      = link_to 'Remove', project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove pull-right', data: { confirm: 'Are you sure?' }

%hr

= render partial: 'projects/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs, project: @project }