diff --git a/app/controllers/registrant/domains_controller.rb b/app/controllers/registrant/domains_controller.rb index 50aac75f3..4bba945a8 100644 --- a/app/controllers/registrant/domains_controller.rb +++ b/app/controllers/registrant/domains_controller.rb @@ -1,12 +1,5 @@ class Registrant::DomainsController < RegistrantController def index authorize! :view, :registrant_domains - ident_cc, ident = @current_user.registrant_ident.split '-' - begin - @domains = BusinessRegistryCache.fetch_associated_domains ident, ident_cc - rescue Soap::Arireg::NotAvailableError => error - flash[:notice] = I18n.t(error.message[:message]) - @domains = [] - end end end diff --git a/app/views/registrant/domains/index.haml b/app/views/registrant/domains/index.haml index f8c03b8af..8b71cefca 100644 --- a/app/views/registrant/domains/index.haml +++ b/app/views/registrant/domains/index.haml @@ -16,9 +16,12 @@ %th{class: 'col-xs-2'} = t(:registrar) %tbody - - @domains.try(:each) do |x| - %tr - %td= x - %td= x.registrant - %td= l(x.valid_to, format: :short) - %td= x.registrar + -# - @domains.each do |x| + -# %tr + -# %td= link_to(x, admin_domain_path(x)) + -# %td + -# - if x.registrant + -# = link_to(x.registrant, [:admin, x.registrant]) + + -# %td= l(x.valid_to, format: :short) + -# %td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar