diff options
Diffstat (limited to 'app/views/projects/hooks/index.html.haml')
-rw-r--r-- | app/views/projects/hooks/index.html.haml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/projects/hooks/index.html.haml b/app/views/projects/hooks/index.html.haml new file mode 100644 index 00000000000..169a5cc9d6b --- /dev/null +++ b/app/views/projects/hooks/index.html.haml @@ -0,0 +1,14 @@ +- @content_class = 'limit-container-width' unless fluid_layout +- breadcrumb_title _('Webhook Settings') +- page_title _('Webhooks') + +.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 |