Commit eaa84510 authored by Brandon Labuschagne's avatar Brandon Labuschagne

Merge branch '344373-update-webhook-badges-to-pajamas' into 'master'

Update webhook badges to pajamas

See merge request gitlab-org/gitlab!78325
parents 692229c2 173a008c
- sslStatus = hook.enable_ssl_verification ? _('enabled') : _('disabled')
- sslBadgeText = _('SSL Verification:') + ' ' + sslStatus
%li %li
.row .row
.col-md-8.col-lg-7 .col-md-8.col-lg-7
%strong.light-header %strong.light-header
= hook.url = hook.url
- if hook.rate_limited? - if hook.rate_limited?
%span.gl-badge.badge-danger.badge-pill.sm= _('Disabled') = gl_badge_tag(_('Disabled'), variant: :danger, size: :sm)
- elsif hook.permanently_disabled? - elsif hook.permanently_disabled?
%span.gl-badge.badge-danger.badge-pill.sm= s_('Webhooks|Failed to connect') = gl_badge_tag(s_('Webhooks|Failed to connect'), variant: :danger, size: :sm)
- elsif hook.temporarily_disabled? - elsif hook.temporarily_disabled?
%span.gl-badge.badge-warning.badge-pill.sm= s_('Webhooks|Fails to connect') = gl_badge_tag(s_('Webhooks|Fails to connect'), variant: :warning, size: :sm)
%div %div
- hook.class.triggers.each_value do |trigger| - hook.class.triggers.each_value do |trigger|
- if hook.public_send(trigger) - if hook.public_send(trigger)
%span.gl-badge.badge-muted.badge-pill.sm.gl-mt-2.deploy-project-label= trigger.to_s.titleize = gl_badge_tag(trigger.to_s.titleize, size: :sm)
%span.gl-badge.badge-muted.badge-pill.sm.gl-mt-2 = gl_badge_tag(sslBadgeText, size: :sm)
= _('SSL Verification:')
= hook.enable_ssl_verification ? _('enabled') : _('disabled')
.col-md-4.col-lg-5.text-right-md.gl-mt-2 .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>= render 'shared/web_hooks/test_button', hook: hook, button_class: 'btn-sm btn-default gl-mr-3'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment