From 843dc8edcbaabae87dd040f6715352ca3ee92f21 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Mon, 18 Jun 2018 10:30:23 +0300 Subject: [PATCH 1/3] Add new links to registrant page layout --- app/controllers/registrant/whois_controller.rb | 11 ----------- .../layouts/registrant/application.html.erb | 16 +++++++++------- test/integration/registrant/layout_test.rb | 5 +++-- 3 files changed, 12 insertions(+), 20 deletions(-) delete mode 100644 app/controllers/registrant/whois_controller.rb diff --git a/app/controllers/registrant/whois_controller.rb b/app/controllers/registrant/whois_controller.rb deleted file mode 100644 index 2936477eb..000000000 --- a/app/controllers/registrant/whois_controller.rb +++ /dev/null @@ -1,11 +0,0 @@ -# As non-GDPR compliant, this controller is deprecated. Needs to be replaced with one that relies -# on the REST WHOIS API. -class Registrant::WhoisController < RegistrantController - def index - authorize! :view, :registrant_whois - - if params[:domain_name].present? - @domain = WhoisRecord.find_by(name: params[:domain_name]); - end - end -end diff --git a/app/views/layouts/registrant/application.html.erb b/app/views/layouts/registrant/application.html.erb index f38f8fcea..f8108d0e0 100644 --- a/app/views/layouts/registrant/application.html.erb +++ b/app/views/layouts/registrant/application.html.erb @@ -42,14 +42,16 @@