-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show sensitive data if IP is in whitelist
- Loading branch information
Artur Beljajev
committed
May 23, 2018
1 parent
4d25b82
commit edc8fe4
Showing
7 changed files
with
238 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<pre> | ||
<%= render partial: "whois", locals: { json: @whois_record.json } %> | ||
<%= render partial: "whois", locals: { json: @whois_record.json, | ||
show_sensitive_data: @show_sensitive_data } %> | ||
</pre> | ||
<% if @verified.blank? %> | ||
<div> | ||
<%= form_for @whois_record, url: "/v1/#{@whois_record.name}", method: :get do |f| %> | ||
<%= recaptcha_tags %> | ||
<br/> | ||
<%= submit_tag 'View full whois info', name: nil %> | ||
<% end %> | ||
</div> | ||
<% if !@show_sensitive_data %> | ||
<%= form_for @whois_record, url: "/v1/#{@whois_record.name}", method: :get do |f| %> | ||
<%= recaptcha_tags %> | ||
<br/> | ||
<%= submit_tag 'View full whois info', name: nil %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
json.disclaimer @whois_record.json['disclaimer'] | ||
json.status @whois_record.json['status'] | ||
json.partial! @whois_record.partial_name(@whitelist), locals: { whois_record: @whois_record } | ||
json.partial! @whois_record.partial_name(@show_sensitive_data), locals: { whois_record: @whois_record } |
Oops, something went wrong.