debian-mirror-gitlab/app/views/projects/hooks/edit.html.haml

19 lines
896 B
Text
Raw Normal View History

2020-01-01 13:55:28 +05:30
- add_to_breadcrumbs _('ProjectService|Integrations'), namespace_project_settings_integrations_path
- page_title _('Edit Project Hook')
2017-08-17 22:00:37 +05:30
.row.prepend-top-default
.col-lg-3
2020-01-01 13:55:28 +05:30
= render 'shared/web_hooks/title_and_docs', hook: @hook
2017-08-17 22:00:37 +05:30
.col-lg-9.append-bottom-default
2017-09-10 17:25:29 +05:30
= form_for [@project.namespace.becomes(Namespace), @project, @hook], as: :hook, url: project_hook_path(@project, @hook) do |f|
2017-08-17 22:00:37 +05:30
= render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook }
2017-09-10 17:25:29 +05:30
2020-01-01 13:55:28 +05:30
%span>= f.submit 'Save changes', class: 'btn btn-success append-right-8'
= render 'shared/web_hooks/test_button', hook: @hook
= link_to _('Delete'), project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: _('Are you sure?') }
2017-09-10 17:25:29 +05:30
%hr
= render partial: 'projects/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs, project: @project }