diff --git a/app/views/for_models/whois.erb b/app/views/for_models/whois.erb index ee9768181..385368b4a 100644 --- a/app/views/for_models/whois.erb +++ b/app/views/for_models/whois.erb @@ -1,59 +1,59 @@ Estonia .ee Top Level Domain WHOIS server Domain: -name: <%= json[:name] %> -<%- for st in Array(json[:status]) -%> +name: <%= json['name'] %> +<%- for st in Array(json['status']) -%> status: <%= st %> <%- end -%> -registered: <%= json[:registered].to_s.tr('T',' ').sub('+', ' +') %> -changed: <%= json[:changed].to_s.tr('T',' ').sub('+', ' +') %> -expire: <%= json[:expire].to_s.tr('T',' ').sub('+', ' +') %> -outzone: <%= json[:outzone].to_s.tr('T',' ').sub('+', ' +') %> -delete: <%= json[:delete].to_s.tr('T',' ').sub('+', ' +') %> +registered: <%= json['registered'].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= json['changed'].to_s.tr('T',' ').sub('+', ' +') %> +expire: <%= json['expire'].to_s.tr('T',' ').sub('+', ' +') %> +outzone: <%= json['outzone'].to_s.tr('T',' ').sub('+', ' +') %> +delete: <%= json['delete'].to_s.tr('T',' ').sub('+', ' +') %> Registrant: -name: <%= json[:registrant] %> +name: <%= json['registrant'] %> email: Not Disclosed - Visit www.internet.ee for webbased WHOIS -changed: <%= json[:changed].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= json['changed'].to_s.tr('T',' ').sub('+', ' +') %> -<%- if json[:admin_contacts].present? -%> +<%- if json['admin_contacts'].present? -%> Administrative contact -<%- for contact in json[:admin_contacts] -%> -name: <%= contact[:name] %> +<%- for contact in json['admin_contacts'] -%> +name: <%= contact['name'] %> email: Not Disclosed - Visit www.internet.ee for webbased WHOIS -changed: <%= contact[:changed].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= contact['changed'].to_s.tr('T',' ').sub('+', ' +') %> <%- end -%> <%- end -%> -<% if json[:tech_contacts].present? %> +<% if json['tech_contacts'].present? %> Technical contact: -<%- for contact in json[:admin_contacts] -%> -name: <%= contact[:name] %> +<%- for contact in json['admin_contacts'] -%> +name: <%= contact['name'] %> email: Not Disclosed - Visit www.internet.ee for webbased WHOIS -changed: <%= contact[:changed].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= contact['changed'].to_s.tr('T',' ').sub('+', ' +') %> <%- end -%> <%- end -%> Registrar: -name: <%= json[:registrar] %> -url: <%= json[:registrar_url] %> -phone: <%= json[:registrar_phone] %> -changed: <%= json[:registrar_changed].to_s.tr('T',' ').sub('+', ' +') %> +name: <%= json['registrar'] %> +url: <%= json['registrar_url'] %> +phone: <%= json['registrar_phone'] %> +changed: <%= json['registrar_changed'].to_s.tr('T',' ').sub('+', ' +') %> -<%- if json[:nameservers].present? -%> +<%- if json['nameservers'].present? -%> Name servers: -<%- for server in json[:nameservers] -%> +<%- for server in json['nameservers'] -%> nserver: <%= server %> <%- end -%> -changed: <%= json[:nameservers_changed].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= json['nameservers_changed'].to_s.tr('T',' ').sub('+', ' +') %> <%- end -%> -<%- if json[:dnssec_keys].present? -%> +<%- if json['dnssec_keys'].present? -%> DNSSEC: -<%- for key in json[:dnssec_keys] -%> +<%- for key in json['dnssec_keys'] -%> dnskey: <%= key %> <%- end -%> -changed: <%= json[:dnssec_changed].to_s.tr('T',' ').sub('+', ' +') %> +changed: <%= json['dnssec_changed'].to_s.tr('T',' ').sub('+', ' +') %> <%- end -%> Estonia .ee Top Level Domain WHOIS server