From 5847f8d57a8f617804552341f8d89a16d338a874 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 6 Nov 2019 12:15:40 +0200 Subject: [PATCH] Do not show errors in UI This feature was unused. --- app/views/admin/domains/partials/_dnskeys.haml | 9 +-------- app/views/admin/domains/partials/_nameservers.haml | 9 +-------- app/views/registrant/domains/partials/_dnskeys.haml | 9 +-------- app/views/registrant/domains/partials/_nameservers.haml | 9 +-------- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/app/views/admin/domains/partials/_dnskeys.haml b/app/views/admin/domains/partials/_dnskeys.haml index 51a90216d..ddd95e952 100644 --- a/app/views/admin/domains/partials/_dnskeys.haml +++ b/app/views/admin/domains/partials/_dnskeys.haml @@ -1,5 +1,4 @@ -- panel_class = @domain.errors.messages[:dnskeys] ? 'panel-danger' : 'panel-default' -.panel{class: panel_class} +.panel.panel-default .panel-heading.clearfix = t(:dnskeys) .table-responsive @@ -17,9 +16,3 @@ %td= x.protocol %td= x.alg %td= x.public_key - - if @domain.errors.messages[:dnskeys] - %tfoot - - @domain.errors.messages[:dnskeys].each do |x| - %tr - %td{colspan: 4}= x - diff --git a/app/views/admin/domains/partials/_nameservers.haml b/app/views/admin/domains/partials/_nameservers.haml index 871da2f0b..0bc22732d 100644 --- a/app/views/admin/domains/partials/_nameservers.haml +++ b/app/views/admin/domains/partials/_nameservers.haml @@ -1,5 +1,4 @@ -- panel_class = @domain.errors.messages[:nameservers] ? 'panel-danger' : 'panel-default' -.panel{class: panel_class} +.panel.panel-default .panel-heading.clearfix = t(:nameservers) .table-responsive @@ -15,9 +14,3 @@ %td= x %td= x.ipv4 %td= x.ipv6 - - if @domain.errors.messages[:nameservers] - %tfoot - - @domain.errors.messages[:nameservers].each do |x| - %tr - %td{colspan: 3}= x - diff --git a/app/views/registrant/domains/partials/_dnskeys.haml b/app/views/registrant/domains/partials/_dnskeys.haml index 51a90216d..ddd95e952 100644 --- a/app/views/registrant/domains/partials/_dnskeys.haml +++ b/app/views/registrant/domains/partials/_dnskeys.haml @@ -1,5 +1,4 @@ -- panel_class = @domain.errors.messages[:dnskeys] ? 'panel-danger' : 'panel-default' -.panel{class: panel_class} +.panel.panel-default .panel-heading.clearfix = t(:dnskeys) .table-responsive @@ -17,9 +16,3 @@ %td= x.protocol %td= x.alg %td= x.public_key - - if @domain.errors.messages[:dnskeys] - %tfoot - - @domain.errors.messages[:dnskeys].each do |x| - %tr - %td{colspan: 4}= x - diff --git a/app/views/registrant/domains/partials/_nameservers.haml b/app/views/registrant/domains/partials/_nameservers.haml index 871da2f0b..0bc22732d 100644 --- a/app/views/registrant/domains/partials/_nameservers.haml +++ b/app/views/registrant/domains/partials/_nameservers.haml @@ -1,5 +1,4 @@ -- panel_class = @domain.errors.messages[:nameservers] ? 'panel-danger' : 'panel-default' -.panel{class: panel_class} +.panel.panel-default .panel-heading.clearfix = t(:nameservers) .table-responsive @@ -15,9 +14,3 @@ %td= x %td= x.ipv4 %td= x.ipv6 - - if @domain.errors.messages[:nameservers] - %tfoot - - @domain.errors.messages[:nameservers].each do |x| - %tr - %td{colspan: 3}= x -