debian-mirror-gitlab/app/views/admin/hooks/index.html.haml

36 lines
1.4 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- page_title 'System Hooks'
2018-03-27 19:54:05 +05:30
.row.prepend-top-default
.col-lg-4
%h4.prepend-top-0
= page_title
%p
#{link_to 'System hooks ', help_page_path('system_hooks/system_hooks'), class: 'vlink'} can be
used for binding events when GitLab creates a User or Project.
2014-09-02 18:07:02 +05:30
2018-03-27 19:54:05 +05:30
.col-lg-8.append-bottom-default
= form_for @hook, as: :hook, url: admin_hooks_path do |f|
= render partial: 'form', locals: { form: f, hook: @hook }
= f.submit 'Add system hook', class: 'btn btn-create'
2014-09-02 18:07:02 +05:30
2018-03-27 19:54:05 +05:30
%hr
2014-09-02 18:07:02 +05:30
2018-03-27 19:54:05 +05:30
- if @hooks.any?
2018-11-08 19:23:39 +05:30
.card
.card-header
2018-03-27 19:54:05 +05:30
System hooks (#{@hooks.count})
%ul.content-list
- @hooks.each do |hook|
%li
.controls
= render 'shared/web_hooks/test_button', triggers: SystemHook.triggers, hook: hook, button_class: 'btn-sm'
= link_to 'Edit', edit_admin_hook_path(hook), class: 'btn btn-sm'
= link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-remove btn-sm'
.monospace= hook.url
%div
- SystemHook.triggers.each_value do |event|
- if hook.public_send(event)
2018-11-08 19:23:39 +05:30
%span.badge.badge-gray= event.to_s.titleize
%span.badge.badge-gray SSL Verification: #{hook.enable_ssl_verification ? 'enabled' : 'disabled'}
2014-09-02 18:07:02 +05:30
2018-03-27 19:54:05 +05:30
= render 'shared/plugins/index'