Merge pull request #494 from internetee/delete-restful-whois-url-config-key

Remove unused "restful_whois_url" config key
This commit is contained in:
Timo Võhmar 2017-09-01 16:33:14 +03:00 committed by GitHub
commit a1eb936644
2 changed files with 15 additions and 25 deletions

View file

@ -1,21 +1,17 @@
= render 'shared/title', name: t(:whois)
- if ENV['restful_whois_url'].blank?
%p
Registrant configuration issue: missing restful_whois_url
- else
.row
.col-md-12{style: 'margin-bottom: -15px;'}
= form_tag registrant_whois_path, class: 'form-horizontal', method: :get do
.col-md-11
.form-group
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t(:domain_name), autocomplete: 'off', autofocus: true
.col-md-1.text-right.text-center-xs
.form-group
%button.btn.btn-default
 
%span.glyphicon.glyphicon-search
 
%hr
- if @domain
%pre= @domain.body
.row
.col-md-12{style: 'margin-bottom: -15px;'}
= form_tag registrant_whois_path, class: 'form-horizontal', method: :get do
.col-md-11
.form-group
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t(:domain_name), autocomplete: 'off', autofocus: true
.col-md-1.text-right.text-center-xs
.form-group
%button.btn.btn-default
 
%span.glyphicon.glyphicon-search
 
%hr
- if @domain
%pre= @domain.body

View file

@ -83,12 +83,6 @@ key_path: '/home/registry/registry/shared/ca/private/webclient.key.pem'
epp_hostname: 'registry.gitlab.eu'
repp_url: 'https://repp.gitlab.eu/repp/v1/'
#
# REGISTRANT configuration
#
restful_whois_url: 'https://restful-whois.example.com'
#
# Estonian Business Registry
#