debian-mirror-gitlab/app/views/projects/settings/integrations/_project_hook.html.haml

17 lines
833 B
Text
Raw Normal View History

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