mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Merge pull request #1411 from internetee/remove-unused-code
Do not show `dnskey` and `nameserver` errors in UI
This commit is contained in:
commit
c5e7263f0e
7 changed files with 8 additions and 36 deletions
|
@ -1,5 +1,4 @@
|
||||||
- panel_class = @domain.errors.messages[:dnskeys] ? 'panel-danger' : 'panel-default'
|
.panel.panel-default
|
||||||
#dnskeys.panel{class: panel_class}
|
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
= t(:dnskeys)
|
= t(:dnskeys)
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
@ -17,9 +16,3 @@
|
||||||
%td= x.protocol
|
%td= x.protocol
|
||||||
%td= x.alg
|
%td= x.alg
|
||||||
%td= x.public_key
|
%td= x.public_key
|
||||||
- if @domain.errors.messages[:dnskeys]
|
|
||||||
%tfoot
|
|
||||||
- @domain.errors.messages[:dnskeys].each do |x|
|
|
||||||
%tr
|
|
||||||
%td{colspan: 4}= x
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
- panel_class = @domain.errors.messages[:nameservers] ? 'panel-danger' : 'panel-default'
|
.panel.panel-default
|
||||||
#nameservers.panel{class: panel_class}
|
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
= t(:nameservers)
|
= t(:nameservers)
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
@ -15,9 +14,3 @@
|
||||||
%td= x
|
%td= x
|
||||||
%td= x.ipv4
|
%td= x.ipv4
|
||||||
%td= x.ipv6
|
%td= x.ipv6
|
||||||
- if @domain.errors.messages[:nameservers]
|
|
||||||
%tfoot
|
|
||||||
- @domain.errors.messages[:nameservers].each do |x|
|
|
||||||
%tr
|
|
||||||
%td{colspan: 3}= x
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- tech_contacts_invalid = @domain.errors.include?(:tech_contacts)
|
- tech_contacts_invalid = @domain.errors.include?(:tech_contacts)
|
||||||
- panel_class = tech_contacts_invalid ? 'panel-danger' : 'panel-default'
|
- panel_class = tech_contacts_invalid ? 'panel-danger' : 'panel-default'
|
||||||
#tech_contacts.panel{class: panel_class}
|
.panel{class: panel_class}
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
= t('.title')
|
= t('.title')
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
- panel_class = @domain.errors.messages[:dnskeys] ? 'panel-danger' : 'panel-default'
|
.panel.panel-default
|
||||||
#dnskeys.panel{class: panel_class}
|
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
= t(:dnskeys)
|
= t(:dnskeys)
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
@ -17,9 +16,3 @@
|
||||||
%td= x.protocol
|
%td= x.protocol
|
||||||
%td= x.alg
|
%td= x.alg
|
||||||
%td= x.public_key
|
%td= x.public_key
|
||||||
- if @domain.errors.messages[:dnskeys]
|
|
||||||
%tfoot
|
|
||||||
- @domain.errors.messages[:dnskeys].each do |x|
|
|
||||||
%tr
|
|
||||||
%td{colspan: 4}= x
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
- panel_class = @domain.errors.messages[:nameservers] ? 'panel-danger' : 'panel-default'
|
.panel.panel-default
|
||||||
#nameservers.panel{class: panel_class}
|
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
= t(:nameservers)
|
= t(:nameservers)
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
@ -15,9 +14,3 @@
|
||||||
%td= x
|
%td= x
|
||||||
%td= x.ipv4
|
%td= x.ipv4
|
||||||
%td= x.ipv6
|
%td= x.ipv6
|
||||||
- if @domain.errors.messages[:nameservers]
|
|
||||||
%tfoot
|
|
||||||
- @domain.errors.messages[:nameservers].each do |x|
|
|
||||||
%tr
|
|
||||||
%td{colspan: 3}= x
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#tech_contacts.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
%h3.panel-title= t(:contacts)
|
%h3.panel-title= t(:contacts)
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
@ -14,4 +14,4 @@
|
||||||
%tr
|
%tr
|
||||||
%td= x['type']
|
%td= x['type']
|
||||||
%td= registrant.name
|
%td= registrant.name
|
||||||
%td= x.text
|
%td= x.text
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#nameservers.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
%h3.panel-title= t(:nameservers)
|
%h3.panel-title= t(:nameservers)
|
||||||
.table-responsive
|
.table-responsive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue