diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 09:07:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 09:07:57 +0000 |
commit | 7881eb30eaa8b01dbcfe87faa09927c75c7d6e45 (patch) | |
tree | 298bc8d2c62b2f2c29cb8ecbcf3de3eaaa6466d9 /app/views/admin/hooks/edit.html.haml | |
parent | 64b66e0cb6d1bfd27abf24e06653f00bddb60597 (diff) | |
download | gitlab-ce-7881eb30eaa8b01dbcfe87faa09927c75c7d6e45.tar.gz |
Add latest changes from gitlab-org/gitlab@12-6-stable-ee
Diffstat (limited to 'app/views/admin/hooks/edit.html.haml')
-rw-r--r-- | app/views/admin/hooks/edit.html.haml | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/app/views/admin/hooks/edit.html.haml b/app/views/admin/hooks/edit.html.haml index 9c6c74ed965..9ce0fa8d401 100644 --- a/app/views/admin/hooks/edit.html.haml +++ b/app/views/admin/hooks/edit.html.haml @@ -1,21 +1,18 @@ -- add_to_breadcrumbs "System Hooks", admin_hooks_path -- page_title 'Edit System Hook' -%h3.page-title - Edit System Hook +- add_to_breadcrumbs @hook.pluralized_name, admin_hooks_path +- page_title _('Edit System Hook') -%p.light - #{link_to 'System hooks ', help_page_path('system_hooks/system_hooks')} can be - used for binding events when GitLab creates a User or Project. +.row.prepend-top-default + .col-lg-3 + = render 'shared/web_hooks/title_and_docs', hook: @hook -%hr + .col-lg-9.append-bottom-default + = form_for @hook, as: :hook, url: admin_hook_path do |f| + = render partial: 'form', locals: { form: f, hook: @hook } + .form-actions + %span>= f.submit _('Save changes'), class: 'btn btn-success append-right-8' + = render 'shared/web_hooks/test_button', hook: @hook + = link_to _('Delete'), admin_hook_path(@hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: _('Are you sure?') } -= form_for @hook, as: :hook, url: admin_hook_path do |f| - = render partial: 'form', locals: { form: f, hook: @hook } - .form-actions - = f.submit 'Save changes', class: 'btn btn-success' - = render 'shared/web_hooks/test_button', triggers: SystemHook.triggers, hook: @hook - = link_to 'Remove', admin_hook_path(@hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' } + %hr -%hr - -= render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs } + = render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs } |