From 7836e9e24425df4bb1b6980f32447c46e6c8ab34 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 30 Dec 2016 12:38:00 +0200 Subject: [PATCH] Exclude reg no. and ident country code from WHOIS output for private entity contacts #266 --- app/views/for_models/whois.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/for_models/whois.erb b/app/views/for_models/whois.erb index ba218e06f..303d95d72 100644 --- a/app/views/for_models/whois.erb +++ b/app/views/for_models/whois.erb @@ -13,8 +13,10 @@ delete: <%= json['delete'].to_s.tr('T',' ').sub('+', ' +') %> Registrant: name: <%= json['registrant'] %> +<% if json['registrant_kind'] != 'priv' -%> org id: <%= json['registrant_reg_no'] %> country: <%= json['registrant_ident_country_code'] %> +<% end -%> email: Not Disclosed - Visit www.internet.ee for webbased WHOIS changed: <%= json['registrant_changed'].to_s.tr('T',' ').sub('+', ' +') %>