diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2017-12-08 14:17:15 +0100 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-01-17 09:55:00 +0100 |
commit | faadd9e0e4edcb332b41aceabd6c03a796e11978 (patch) | |
tree | 3fc3f2dec56e9e6c447888efd0e2759c55d4123b /app/views/projects/hooks/edit.html.haml | |
parent | f99b0cc5853f10e07a8ed60caa40c07a4c677d6f (diff) | |
download | gitlab-ce-faadd9e0e4edcb332b41aceabd6c03a796e11978.tar.gz |
use class reader instead of dynamic constant
Diffstat (limited to 'app/views/projects/hooks/edit.html.haml')
-rw-r--r-- | app/views/projects/hooks/edit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/hooks/edit.html.haml b/app/views/projects/hooks/edit.html.haml index b1219f019d7..dcc1f0e3fbe 100644 --- a/app/views/projects/hooks/edit.html.haml +++ b/app/views/projects/hooks/edit.html.haml @@ -12,7 +12,7 @@ = render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook } = f.submit 'Save changes', class: 'btn btn-create' - = render 'shared/web_hooks/test_button', triggers: ProjectHook::TRIGGERS, hook: @hook + = render 'shared/web_hooks/test_button', triggers: ProjectHook.triggers, hook: @hook = link_to 'Remove', project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove pull-right', data: { confirm: 'Are you sure?' } %hr |