mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Add handling of missing disclaimer
This commit is contained in:
parent
396852df53
commit
20d341f2e5
3 changed files with 11 additions and 2 deletions
|
@ -36,7 +36,7 @@ class WhoisRecord < ActiveRecord::Base
|
|||
registrant = domain.registrant
|
||||
|
||||
@disclosed = []
|
||||
h[:disclaimer] = disclaimer_text
|
||||
h[:disclaimer] = disclaimer_text if disclaimer_text.present?
|
||||
h[:name] = domain.name
|
||||
h[:status] = domain.statuses.map { |x| status_map[x] || x }
|
||||
h[:registered] = domain.registered_at.try(:to_s, :iso8601)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<%- if json['disclaimer'].present? %>
|
||||
<%= json['disclaimer'].scan(/\S.{0,72}\S(?=\s|$)|\S+/).join("\n") %>
|
||||
|
||||
<%- end %>
|
||||
Estonia .ee Top Level Domain WHOIS server
|
||||
|
||||
Domain:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue