2020-02-24 13:09:05 -05:00
|
|
|
- @content_class = 'limit-container-width' unless fluid_layout
|
2021-12-15 16:11:32 -05:00
|
|
|
- add_to_breadcrumbs _('Webhook Settings'), project_hooks_path(@project)
|
2020-02-24 13:09:05 -05:00
|
|
|
- page_title _('Webhook')
|
2017-04-20 04:31:37 -04:00
|
|
|
|
2021-12-16 04:15:29 -05:00
|
|
|
= render 'shared/web_hooks/hook_errors', hook: @hook
|
2021-12-15 16:11:32 -05: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
|
2022-04-19 02:08:57 -04:00
|
|
|
= gitlab_ui_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
|
|
|
|
2021-08-25 17:10:28 -04:00
|
|
|
= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mr-3'
|
2019-12-16 04:08:10 -05:00
|
|
|
= render 'shared/web_hooks/test_button', hook: @hook
|
2022-02-10 07:18:48 -05:00
|
|
|
= link_to _('Delete'), project_hook_path(@project, @hook), method: :delete, class: 'btn gl-button btn-danger float-right', aria: { label: s_('Webhooks|Delete webhook') }, data: { confirm: s_('Webhooks|Are you sure you want to delete this project hook?'), confirm_btn_variant: 'danger' }
|
2017-04-27 06:08:57 -04:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
= render partial: 'projects/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs, project: @project }
|