refactored `_email_with_badge` partial from gpg into shared, so it can
be used with the email profile page as well
This commit is contained in:
parent
f5937926f2
commit
c56208f980
|
@ -392,11 +392,11 @@ table.u2f-registrations {
|
|||
}
|
||||
}
|
||||
|
||||
.gpg-email-badge {
|
||||
.email-badge {
|
||||
display: inline;
|
||||
margin-right: $gl-padding / 2;
|
||||
|
||||
.gpg-email-badge-email {
|
||||
.email-badge-email {
|
||||
display: inline;
|
||||
margin-right: $gl-padding / 4;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
= icon 'key', class: "settings-list-icon hidden-xs"
|
||||
.key-list-item-info
|
||||
- key.emails_with_verified_status.map do |email, verified|
|
||||
= render partial: 'email_with_badge', locals: { email: email, verified: verified }
|
||||
= render partial: 'shared/email_with_badge', locals: { email: email, verified: verified }
|
||||
|
||||
.description
|
||||
%code= key.fingerprint
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- css_classes << (verified ? 'verified': 'unverified')
|
||||
- text = verified ? 'Verified' : 'Unverified'
|
||||
|
||||
.gpg-email-badge
|
||||
.gpg-email-badge-email= email
|
||||
.email-badge
|
||||
.email-badge-email= email
|
||||
%div{ class: css_classes }
|
||||
= text
|
Loading…
Reference in New Issue