Commit 1afbeb49 authored by Phil Hughes's avatar Phil Hughes

Merge branch '344405-credentials-gpg-badge-pajamas' into 'master'

Update credentials gpg badge to match pajamas

See merge request gitlab-org/gitlab!77643
parents a77f610c e989d5b7
- verified = gpg_key.verified? - verified = gpg_key.verified?
- verified_css_classes = %w(badge gl-badge) - variant = verified ? :success : :danger
- verified_css_classes << (verified ? 'badge-success': 'badge-danger')
- verified_text = verified ? _('Verified') : _('Unverified') - verified_text = verified ? _('Verified') : _('Unverified')
.gl-responsive-table-row{ role: 'row', data: { qa_selector: 'credentials_gpg_key_row_content' } } .gl-responsive-table-row{ role: 'row', data: { qa_selector: 'credentials_gpg_key_row_content' } }
...@@ -19,5 +18,4 @@ ...@@ -19,5 +18,4 @@
.table-mobile-header{ role: 'rowheader' } .table-mobile-header{ role: 'rowheader' }
= _('Status') = _('Status')
.table-mobile-content .table-mobile-content
%div{ class: verified_css_classes } = gl_badge_tag verified_text, variant: variant
= verified_text
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