Commit e989d5b7 authored by Alexander Turinske's avatar Alexander Turinske

Update credentials gpg badge to match pajamas

- use glBadge helper method

Changelog: changed

EE: true
parent 1b49113d
- verified = gpg_key.verified?
- verified_css_classes = %w(badge gl-badge)
- verified_css_classes << (verified ? 'badge-success': 'badge-danger')
- variant = verified ? :success : :danger
- verified_text = verified ? _('Verified') : _('Unverified')
.gl-responsive-table-row{ role: 'row', data: { qa_selector: 'credentials_gpg_key_row_content' } }
......@@ -19,5 +18,4 @@
.table-mobile-header{ role: 'rowheader' }
= _('Status')
.table-mobile-content
%div{ class: verified_css_classes }
= verified_text
= gl_badge_tag verified_text, variant: variant
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