summaryrefslogtreecommitdiff
path: root/app/views/projects/hooks/_index.html.haml
blob: 70f2fa0e7583d170a34120f40d2278b48431fe24 (plain)
1
2
3
4
5
6
7
8
9
10
.row.prepend-top-default
  .col-lg-4
    = render 'shared/web_hooks/title_and_docs', hook: @hook

  .col-lg-8.append-bottom-default
    = form_for @hook, as: :hook, url: polymorphic_path([@project.namespace.becomes(Namespace), @project, :hooks]) do |f|
      = render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook }
      = f.submit 'Add webhook', class: 'btn btn-success'

    = render 'shared/web_hooks/index', hooks: @hooks, hook_class: @hook.class