mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
refactor ident_for helper
This commit is contained in:
parent
b52ec4e35e
commit
1264cde50d
3 changed files with 6 additions and 6 deletions
|
@ -9,12 +9,12 @@ module ApplicationHelper
|
|||
"background-image: url(#{image_path(unstable_env.to_s + '.png')});"
|
||||
end
|
||||
|
||||
def ident_indicator(contact)
|
||||
def ident_for(contact)
|
||||
case contact.ident_type
|
||||
when 'birthday'
|
||||
"[#{contact.ident_type}]"
|
||||
"#{contact.ident} [#{contact.ident_type}]"
|
||||
else
|
||||
"[#{contact.ident_country_code} #{contact.ident_type}]"
|
||||
"#{contact.ident} [#{contact.ident_country_code} #{contact.ident_type}]"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue