mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Story #105846070 - enable user view, registrant shows user domains
This commit is contained in:
parent
a5e3c95b35
commit
cf1f9818b3
2 changed files with 8 additions and 9 deletions
|
@ -1,5 +1,7 @@
|
|||
class Registrant::DomainsController < RegistrantController
|
||||
def index
|
||||
authorize! :view, :registrant_domains
|
||||
ident_cc, ident = @current_user.registrant_ident.split '-'
|
||||
@domains = BusinessRegistryCache.fetch_associated_domains ident, ident_cc
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,12 +16,9 @@
|
|||
%th{class: 'col-xs-2'}
|
||||
= t(:registrar)
|
||||
%tbody
|
||||
-# - @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
|
||||
- @domains.each do |x|
|
||||
%tr
|
||||
%td= x
|
||||
%td= x.registrant
|
||||
%td= l(x.valid_to, format: :short)
|
||||
%td= x.registrar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue