mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Fix views & email_verifable inclusion
This commit is contained in:
parent
5f0c031410
commit
90f862aa8f
15 changed files with 50 additions and 124 deletions
|
@ -108,14 +108,4 @@ module ApplicationHelper
|
|||
def body_css_class
|
||||
[controller_path.split('/').map!(&:dasherize), action_name.dasherize, 'page'].join('-')
|
||||
end
|
||||
|
||||
def verified_email_span(verification)
|
||||
tag.span(verification.email, class: verified_email_class(verification))
|
||||
end
|
||||
|
||||
def verified_email_class(verification)
|
||||
return 'text-danger' if verification.failed?
|
||||
return 'text-primary' if verification.not_verified?
|
||||
return 'text-success' if verification.verified?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue