2016-04-26 05:56:18 -04:00
|
|
|
%li
|
|
|
|
.row
|
|
|
|
.col-md-8.col-lg-7
|
|
|
|
%strong.light-header= hook.url
|
|
|
|
%div
|
2017-12-08 08:17:15 -05:00
|
|
|
- ProjectHook.triggers.each_value do |event|
|
2017-07-20 11:12:06 -04:00
|
|
|
- if hook.public_send(event)
|
2018-04-13 15:46:38 -04:00
|
|
|
%span.badge.badge-gray.deploy-project-label= event.to_s.titleize
|
2016-04-26 05:56:18 -04:00
|
|
|
.col-md-4.col-lg-5.text-right-lg.prepend-top-5
|
|
|
|
%span.append-right-10.inline
|
2018-06-14 04:40:56 -04:00
|
|
|
#{_("SSL Verification")}: #{hook.enable_ssl_verification ? _('enabled') : _('disabled')}
|
|
|
|
= link_to _('Edit'), edit_project_hook_path(@project, hook), class: 'btn btn-sm'
|
2017-12-08 08:17:15 -05:00
|
|
|
= render 'shared/web_hooks/test_button', triggers: ProjectHook.triggers, hook: hook, button_class: 'btn-sm'
|
2018-06-14 04:40:56 -04:00
|
|
|
= link_to project_hook_path(@project, hook), data: { confirm: _('Are you sure?') }, method: :delete, class: 'btn btn-transparent' do
|
|
|
|
%span.sr-only= _("Remove")
|
2016-04-26 05:56:18 -04:00
|
|
|
= icon('trash')
|