summaryrefslogtreecommitdiff
path: root/app/views/profiles/gpg_keys/_email_with_badge.html.haml
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-13 16:52:34 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:45:26 +0200
commit312dc89a44642050a2224c1b780054828c819fd6 (patch)
tree95a70aa6d534dd2b0e42b14935d4dbe3efd6113b /app/views/profiles/gpg_keys/_email_with_badge.html.haml
parenta03a6ff326300daafbd67fd32eaaa08a4b649395 (diff)
downloadgitlab-ce-312dc89a44642050a2224c1b780054828c819fd6.tar.gz
nicer email badges on the profile gpg page
Diffstat (limited to 'app/views/profiles/gpg_keys/_email_with_badge.html.haml')
-rw-r--r--app/views/profiles/gpg_keys/_email_with_badge.html.haml8
1 files changed, 8 insertions, 0 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
new file mode 100644
index 00000000000..5f7844584e1
--- /dev/null
+++ b/app/views/profiles/gpg_keys/_email_with_badge.html.haml
@@ -0,0 +1,8 @@
+- 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