mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Strory#108869472 - get deleted registrars by history
This commit is contained in:
parent
f49ee67e83
commit
4a2bbdda7b
1 changed files with 8 additions and 3 deletions
|
@ -56,14 +56,19 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @versions.each do |version|
|
- @versions.each do |version|
|
||||||
- if version
|
- if version
|
||||||
- domain = Domain.new(version.object.to_h)
|
- domain = Domain.new(version.object.to_h)
|
||||||
- version.object_changes.to_h.each{|k,v| domain[k]=v.last}
|
- version.object_changes.to_h.each{|k,v| domain[k]=v.last}
|
||||||
|
|
||||||
%tr
|
%tr
|
||||||
%td= link_to(domain.name, admin_domain_version_path(version.id))
|
%td= link_to(domain.name, admin_domain_version_path(version.id))
|
||||||
%td
|
%td
|
||||||
- if domain.registrant
|
- if domain.registrant
|
||||||
= domain.registrant
|
= domain.registrant.name
|
||||||
|
- else
|
||||||
|
- contact = Contact.all_versions_for([domain.registrant_id], version.created_at).first
|
||||||
|
- if contact.nil? && ver = ContactVersion.where(item_id: domain.registrant_id).last
|
||||||
|
- contact = Contact.new(ver.object.to_h.merge(ver.object_changes.to_h.each_with_object({}){|(k,v), o| o[k]=v.last } ))
|
||||||
|
= contact.try(:name)
|
||||||
%td
|
%td
|
||||||
- if domain.registrar
|
- if domain.registrar
|
||||||
= link_to(domain.registrar, admin_registrar_path(domain.registrar))
|
= link_to(domain.registrar, admin_registrar_path(domain.registrar))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue