Commit c56208f9 authored by Brett Walker's avatar Brett Walker

refactored `_email_with_badge` partial from gpg into shared, so it can

be used with the email profile page as well
parent f5937926
...@@ -392,11 +392,11 @@ table.u2f-registrations { ...@@ -392,11 +392,11 @@ table.u2f-registrations {
} }
} }
.gpg-email-badge { .email-badge {
display: inline; display: inline;
margin-right: $gl-padding / 2; margin-right: $gl-padding / 2;
.gpg-email-badge-email { .email-badge-email {
display: inline; display: inline;
margin-right: $gl-padding / 4; margin-right: $gl-padding / 4;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= icon 'key', class: "settings-list-icon hidden-xs" = icon 'key', class: "settings-list-icon hidden-xs"
.key-list-item-info .key-list-item-info
- key.emails_with_verified_status.map do |email, verified| - 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 .description
%code= key.fingerprint %code= key.fingerprint
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- css_classes << (verified ? 'verified': 'unverified') - css_classes << (verified ? 'verified': 'unverified')
- text = verified ? 'Verified' : 'Unverified' - text = verified ? 'Verified' : 'Unverified'
.gpg-email-badge .email-badge
.gpg-email-badge-email= email .email-badge-email= email
%div{ class: css_classes } %div{ class: css_classes }
= text = 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