diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-02-24 21:28:26 +0100 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:40:41 +0200 |
commit | f0fe1b9d4397e6c1c6aa2da6e371e234db774fe2 (patch) | |
tree | d7d35a328b4aa6fe0535a57554e0996d1deb6c1b /app/helpers | |
parent | 0668521b2b8ed32f4a3f192a8ad04c64f6c1c0cd (diff) | |
download | gitlab-ce-f0fe1b9d4397e6c1c6aa2da6e371e234db774fe2.tar.gz |
gpg email verification
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/badges_helper.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/badges_helper.rb b/app/helpers/badges_helper.rb new file mode 100644 index 00000000000..e1c8927ab54 --- /dev/null +++ b/app/helpers/badges_helper.rb @@ -0,0 +1,11 @@ +module BadgesHelper + def verified_email_badge(email, verified) + css_classes = %w(btn btn-xs disabled) + + css_classes << 'btn-success' if verified + + content_tag 'span', class: css_classes do + "#{email} #{verified ? 'Verified' : 'Unverified'}" + end + end +end |