mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
Merge branch 'master' into 499-admin-wildcard-search
This commit is contained in:
parent
f93286c2e6
commit
fd6e625d25
49 changed files with 382 additions and 160 deletions
|
@ -10,27 +10,11 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def ident_for(contact)
|
||||
if contact.is_a? Hash
|
||||
ident_country_code = contact[:ident_country_code]
|
||||
ident_type = contact[:ident_type]
|
||||
ident = contact[:ident]
|
||||
else
|
||||
ident_country_code = contact.ident_country_code
|
||||
ident_type = contact.ident_type
|
||||
ident = contact.ident
|
||||
end
|
||||
ident = contact.ident
|
||||
description = "[#{contact.ident_country_code} #{contact.ident_type}]"
|
||||
description.prepend("#{ident} ") if ident.present?
|
||||
|
||||
case ident_type
|
||||
when 'birthday'
|
||||
"#{ident} [#{ident_country_code} #{ident_type}]"
|
||||
else
|
||||
if ident.present?
|
||||
"#{ident} [#{ident_country_code} #{ident_type}]"
|
||||
else
|
||||
"[#{ident_country_code} #{ident_type}]"
|
||||
end
|
||||
|
||||
end
|
||||
description
|
||||
end
|
||||
|
||||
def current_commit_link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue