From c56208f98028d10f8f2ab315ae52e9fcacc45399 Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Sat, 9 Sep 2017 15:18:40 +0200 Subject: refactored `_email_with_badge` partial from gpg into shared, so it can be used with the email profile page as well --- app/views/profiles/gpg_keys/_email_with_badge.html.haml | 8 -------- app/views/profiles/gpg_keys/_key.html.haml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 app/views/profiles/gpg_keys/_email_with_badge.html.haml (limited to 'app/views/profiles/gpg_keys') diff --git a/app/views/profiles/gpg_keys/_email_with_badge.html.haml b/app/views/profiles/gpg_keys/_email_with_badge.html.haml deleted file mode 100644 index 5f7844584e1..00000000000 --- a/app/views/profiles/gpg_keys/_email_with_badge.html.haml +++ /dev/null @@ -1,8 +0,0 @@ -- css_classes = %w(label label-verification-status) -- css_classes << (verified ? 'verified': 'unverified') -- text = verified ? 'Verified' : 'Unverified' - -.gpg-email-badge - .gpg-email-badge-email= email - %div{ class: css_classes } - = text diff --git a/app/views/profiles/gpg_keys/_key.html.haml b/app/views/profiles/gpg_keys/_key.html.haml index b04981f90e3..970e92aadaa 100644 --- a/app/views/profiles/gpg_keys/_key.html.haml +++ b/app/views/profiles/gpg_keys/_key.html.haml @@ -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 -- cgit v1.2.3