mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +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
|
||||
- children = HashWithIndifferentAccess.new(version.children)
|
||||
- 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)
|
||||
- admin_contacts = Contact.all_versions_for(children[:admin_contacts], version.created_at)
|
||||
- registrant = Contact.all_versions_for(children[:registrant], version.created_at)
|
||||
|
@ -14,6 +15,7 @@
|
|||
- creator = plain_username(version.terminator)
|
||||
- else # pending history
|
||||
- nameservers = domain.nameservers
|
||||
- dnskeys = domain.dnskeys
|
||||
- tech_contacts = domain.tech_contacts
|
||||
- admin_contacts = domain.admin_contacts
|
||||
- registrant = [domain.registrant]
|
||||
|
@ -95,6 +97,14 @@
|
|||
= ns[:ipv4].presence
|
||||
= ns[:ipv6].presence
|
||||
%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")}
|
||||
- if domain.registrar
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
%th{class: 'col-xs-2'}= t(:admin)
|
||||
%th{class: 'col-xs-2'}= t(:tech)
|
||||
%th{class: 'col-xs-2'}= t(:nameservers)
|
||||
%th{class: 'col-xs-2'}= t(:dnskeys)
|
||||
%th{class: 'col-xs-2'}= t(:registrar)
|
||||
|
||||
%tbody
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue