2020-02-24 13:09:05 -05:00
|
|
|
- @content_class = 'limit-container-width' unless fluid_layout
|
|
|
|
- add_to_breadcrumbs _('Webhook Settings'), namespace_project_hooks_path
|
|
|
|
- page_title _('Webhook')
|
2017-04-20 04:31:37 -04:00
|
|
|
|
2020-06-26 02:09:03 -04:00
|
|
|
.row.gl-mt-3
|
2017-04-20 04:31:37 -04:00
|
|
|
.col-lg-3
|
2019-12-16 04:08:10 -05:00
|
|
|
= render 'shared/web_hooks/title_and_docs', hook: @hook
|
|
|
|
|
2020-06-22 11:09:27 -04:00
|
|
|
.col-lg-9.gl-mb-3
|
2020-07-27 08:09:50 -04:00
|
|
|
= form_for [@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
|
|
|
|
2020-09-23 11:10:14 -04:00
|
|
|
= f.submit 'Save changes', class: 'btn gl-button btn-success gl-mr-3'
|
2019-12-16 04:08:10 -05:00
|
|
|
= render 'shared/web_hooks/test_button', hook: @hook
|
2020-09-23 11:10:14 -04:00
|
|
|
= link_to _('Delete'), project_hook_path(@project, @hook), method: :delete, class: 'btn gl-button btn-danger 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 }
|