mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Story #105846070 - revert domains_controller and domains/index to allow merge
This commit is contained in:
parent
23d4547e2b
commit
3d71a01280
2 changed files with 9 additions and 13 deletions
|
@ -1,12 +1,5 @@
|
||||||
class Registrant::DomainsController < RegistrantController
|
class Registrant::DomainsController < RegistrantController
|
||||||
def index
|
def index
|
||||||
authorize! :view, :registrant_domains
|
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
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,9 +16,12 @@
|
||||||
%th{class: 'col-xs-2'}
|
%th{class: 'col-xs-2'}
|
||||||
= t(:registrar)
|
= t(:registrar)
|
||||||
%tbody
|
%tbody
|
||||||
- @domains.try(:each) do |x|
|
-# - @domains.each do |x|
|
||||||
%tr
|
-# %tr
|
||||||
%td= x
|
-# %td= link_to(x, admin_domain_path(x))
|
||||||
%td= x.registrant
|
-# %td
|
||||||
%td= l(x.valid_to, format: :short)
|
-# - if x.registrant
|
||||||
%td= x.registrar
|
-# = 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue