Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_hook.html.haml « web_hooks « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 45baa7e21841682db6489a27be63c2d627cab7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%li
  .row
    .col-md-8.col-lg-7
      %strong.light-header
        = hook.url
        - if hook.rate_limited?
          %span.gl-badge.badge-danger.badge-pill.sm= _('Disabled')
        - elsif hook.permanently_disabled?
          %span.gl-badge.badge-danger.badge-pill.sm= s_('Webhooks|Failed to connect')
        - elsif hook.temporarily_disabled?
          %span.gl-badge.badge-warning.badge-pill.sm= s_('Webhooks|Fails to connect')

      %div
        - hook.class.triggers.each_value do |trigger|
          - if hook.public_send(trigger)
            %span.gl-badge.badge-muted.badge-pill.sm.gl-mt-2.deploy-project-label= trigger.to_s.titleize
        %span.gl-badge.badge-muted.badge-pill.sm.gl-mt-2
          = _('SSL Verification:')
          = hook.enable_ssl_verification ? _('enabled') : _('disabled')

    .col-md-4.col-lg-5.text-right-md.gl-mt-2
      %span>= render 'shared/web_hooks/test_button', hook: hook, button_class: 'btn-sm btn-default gl-mr-3'
      %span>= link_to _('Edit'), edit_hook_path(hook), class: 'btn gl-button btn-default btn-sm gl-mr-3'
      = link_to _('Delete'), destroy_hook_path(hook), data: { confirm: _('Are you sure?') }, method: :delete, class: 'btn gl-button btn-secondary btn-danger-secondary btn-sm'