Skip to content

Commit

Permalink
Change results page to use localized disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
yulgolem committed Oct 8, 2020
1 parent 04b6683 commit a379618
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/views/whois_records/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<h1><%= t '.header' %></h1>

<p><%= @whois_record.disclaimer %></p>
<% disclaimer = @whois_record.disclaimer %>
<% if disclaimer.is_a?(String) %>
<% disclaimer_string = disclaimer %>
<% elsif disclaimer.is_a?(Hash) %>
<% disclaimer_string = disclaimer[I18n.locale.to_s] %>
<% end %>
<p><%= disclaimer_string if disclaimer %></p>

<%= render 'whois_records/show/domain', domain: @whois_record.domain %>

Expand Down

0 comments on commit a379618

Please sign in to comment.