mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
story#115762063 - show all dnskey attributes in history
This commit is contained in:
parent
2b2e2e5254
commit
44e5f10c38
2 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
- if version # normal history
|
- if version # normal history
|
||||||
- children = HashWithIndifferentAccess.new(version.children)
|
- children = HashWithIndifferentAccess.new(version.children)
|
||||||
- nameservers = Nameserver.all_versions_for(children[:nameservers], version.created_at)
|
- nameservers = Nameserver.all_versions_for(children[:nameservers], version.created_at)
|
||||||
|
- dnskeys = Dnskey.all_versions_for(children[:dnskeys], version.created_at)
|
||||||
- tech_contacts = Contact.all_versions_for(children[:tech_contacts], version.created_at)
|
- tech_contacts = Contact.all_versions_for(children[:tech_contacts], version.created_at)
|
||||||
- admin_contacts = Contact.all_versions_for(children[:admin_contacts], version.created_at)
|
- admin_contacts = Contact.all_versions_for(children[:admin_contacts], version.created_at)
|
||||||
- registrant = Contact.all_versions_for(children[:registrant], version.created_at)
|
- registrant = Contact.all_versions_for(children[:registrant], version.created_at)
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
- creator = plain_username(version.terminator)
|
- creator = plain_username(version.terminator)
|
||||||
- else # pending history
|
- else # pending history
|
||||||
- nameservers = domain.nameservers
|
- nameservers = domain.nameservers
|
||||||
|
- dnskeys = domain.dnskeys
|
||||||
- tech_contacts = domain.tech_contacts
|
- tech_contacts = domain.tech_contacts
|
||||||
- admin_contacts = domain.admin_contacts
|
- admin_contacts = domain.admin_contacts
|
||||||
- registrant = [domain.registrant]
|
- registrant = [domain.registrant]
|
||||||
|
@ -95,6 +97,14 @@
|
||||||
= ns[:ipv4].presence
|
= ns[:ipv4].presence
|
||||||
= ns[:ipv6].presence
|
= ns[:ipv6].presence
|
||||||
%br
|
%br
|
||||||
|
%td
|
||||||
|
- Array(dnskeys).each do |ns|
|
||||||
|
%p
|
||||||
|
= ns.flags
|
||||||
|
= ns.protocol
|
||||||
|
= ns.alg
|
||||||
|
%br
|
||||||
|
= ns.attributes.except("id", "domain_id", "updated_at", "legacy_domain_id")
|
||||||
|
|
||||||
%td{class: changing_css_class(version,"registrar_id")}
|
%td{class: changing_css_class(version,"registrar_id")}
|
||||||
- if domain.registrar
|
- if domain.registrar
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
%th{class: 'col-xs-2'}= t(:admin)
|
%th{class: 'col-xs-2'}= t(:admin)
|
||||||
%th{class: 'col-xs-2'}= t(:tech)
|
%th{class: 'col-xs-2'}= t(:tech)
|
||||||
%th{class: 'col-xs-2'}= t(:nameservers)
|
%th{class: 'col-xs-2'}= t(:nameservers)
|
||||||
|
%th{class: 'col-xs-2'}= t(:dnskeys)
|
||||||
%th{class: 'col-xs-2'}= t(:registrar)
|
%th{class: 'col-xs-2'}= t(:registrar)
|
||||||
|
|
||||||
%tbody
|
%tbody
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue