Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-09 16:18:40 +0300
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 16:23:11 +0300
commitc56208f98028d10f8f2ab315ae52e9fcacc45399 (patch)
tree2771d062d7573e341b403356892fa754ff8fed9b /app/views/profiles/gpg_keys
parentf5937926f22095b68ae8bf363e737730df1848ce (diff)
refactored `_email_with_badge` partial from gpg into shared, so it can
be used with the email profile page as well
Diffstat (limited to 'app/views/profiles/gpg_keys')
-rw-r--r--app/views/profiles/gpg_keys/_email_with_badge.html.haml8
-rw-r--r--app/views/profiles/gpg_keys/_key.html.haml2
2 files changed, 1 insertions, 9 deletions
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