mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Merge branch 'master' of github.com:domify/registry
This commit is contained in:
commit
46dd0920a9
2 changed files with 16 additions and 17 deletions
|
@ -1,13 +0,0 @@
|
||||||
xml.tag!('contact:postalInfo', type: 'int') do
|
|
||||||
xml.tag!('contact:name', @contact.name) #if @disclosure.try(:[], :name) || @owner
|
|
||||||
xml.tag!('contact:org', @contact.org_name) #if @disclosure.try(:[], :org_name) || @owner
|
|
||||||
# if @disclosure.try(:addr) || @owner
|
|
||||||
xml.tag!('contact:addr') do
|
|
||||||
xml.tag!('contact:street', @contact.street)
|
|
||||||
xml.tag!('contact:city', @contact.city)
|
|
||||||
xml.tag!('contact:pc', @contact.zip)
|
|
||||||
xml.tag!('contact:sp', @contact.state)
|
|
||||||
xml.tag!('contact:cc', @contact.country_code)
|
|
||||||
end
|
|
||||||
# end
|
|
||||||
end
|
|
|
@ -7,10 +7,22 @@ xml.epp_head do
|
||||||
xml.resData do
|
xml.resData do
|
||||||
xml.tag!('contact:infData', 'xmlns:contact' => 'urn:ietf:params:xml:ns:contact-1.0') do
|
xml.tag!('contact:infData', 'xmlns:contact' => 'urn:ietf:params:xml:ns:contact-1.0') do
|
||||||
xml.tag!('contact:id', @contact.code)
|
xml.tag!('contact:id', @contact.code)
|
||||||
xml << render('/epp/contacts/postal_info')
|
xml.tag!('contact:voice', @contact.phone)
|
||||||
xml.tag!('contact:voice', @contact.phone) #if @disclosure.try(:phone) || @owner
|
xml.tag!('contact:email', @contact.email)
|
||||||
xml.tag!('contact:fax', @contact.fax) #if @disclosure.try(:fax) || @owner
|
xml.tag!('contact:fax', @contact.fax) if @contact.fax.present?
|
||||||
xml.tag!('contact:email', @contact.email) #if @disclosure.try(:email) || @owner
|
|
||||||
|
xml.tag!('contact:postalInfo', type: 'int') do
|
||||||
|
xml.tag!('contact:name', @contact.name)
|
||||||
|
xml.tag!('contact:org', @contact.org_name) if @contact.org_name.present?
|
||||||
|
xml.tag!('contact:addr') do
|
||||||
|
xml.tag!('contact:street', @contact.street)
|
||||||
|
xml.tag!('contact:city', @contact.city)
|
||||||
|
xml.tag!('contact:pc', @contact.zip)
|
||||||
|
xml.tag!('contact:sp', @contact.state)
|
||||||
|
xml.tag!('contact:cc', @contact.country_code)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
xml.tag!('contact:clID', @contact.registrar.try(:name))
|
xml.tag!('contact:clID', @contact.registrar.try(:name))
|
||||||
xml.tag!('contact:crID', @contact.creator.try(:registrar))
|
xml.tag!('contact:crID', @contact.creator.try(:registrar))
|
||||||
xml.tag!('contact:crDate', @contact.created_at)
|
xml.tag!('contact:crDate', @contact.created_at)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue