mirror of
https://github.com/internetee/registry.git
synced 2025-05-21 19:59:38 +02:00
108869472-archive_modifications
This commit is contained in:
parent
7eeb889b22
commit
55c6bac1d8
4 changed files with 38 additions and 28 deletions
|
@ -79,6 +79,8 @@
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= paginate @versions
|
= paginate @versions
|
||||||
.col-md-6.text-right
|
.col-md-6.text-right
|
||||||
|
.pagination
|
||||||
|
= t(:result_count, count: @versions.total_count)
|
||||||
|
|
||||||
|
|
||||||
:coffee
|
:coffee
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
= render 'shared/title', name: @version.reify.name
|
= render 'shared/title', name: @version.reify.name
|
||||||
|
|
||||||
|
- contact = @version.reify
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8
|
.col-md-8
|
||||||
.panel.panel-default{:style => "min-height:420px;"}
|
.panel.panel-default{:style => "min-height:420px;"}
|
||||||
|
@ -11,55 +13,56 @@
|
||||||
.panel-body
|
.panel-body
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t(:id)
|
%dt= t(:id)
|
||||||
%dd= @version.reify.code
|
%dd= contact.code
|
||||||
|
|
||||||
%dt= t(:ident)
|
%dt= t(:ident)
|
||||||
%dd= ident_for(@version.reify)
|
%dd= ident_for(contact)
|
||||||
|
|
||||||
%dt= t(:email)
|
%dt= t(:email)
|
||||||
%dd= @version.reify.email
|
%dd= contact.email
|
||||||
|
|
||||||
%dt= t(:phone)
|
- if contact.phone
|
||||||
%dd= @version.reify.phone
|
%dt= t(:phone)
|
||||||
|
%dd= contact.phone
|
||||||
|
|
||||||
- if @version.reify.fax
|
- if contact.fax
|
||||||
%dt= t(:fax)
|
%dt= t(:fax)
|
||||||
%dd= @version.reify.fax
|
%dd= contact.fax
|
||||||
|
|
||||||
%br
|
%br
|
||||||
|
|
||||||
%dt= t(:created)
|
%dt= t(:created)
|
||||||
%dd
|
%dd
|
||||||
= l(@version.reify.created_at, format: :short)
|
= l(contact.created_at, format: :short)
|
||||||
|
|
||||||
%dt= t(:updated)
|
%dt= t(:updated)
|
||||||
%dd
|
%dd
|
||||||
= l(@version.reify.updated_at, format: :short)
|
= l(contact.updated_at, format: :short)
|
||||||
|
|
||||||
%dt= t(:registrar)
|
%dt= t(:registrar)
|
||||||
%dd
|
%dd
|
||||||
- if @version.reify.registrar.present?
|
- if contact.registrar.present?
|
||||||
= link_to(@version.reify.registrar, admin_registrar_path(@version.reify.registrar))
|
= link_to(contact.registrar, admin_registrar_path(contact.registrar))
|
||||||
|
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
- if @version.reify.org_name.present?
|
- if contact.org_name.present?
|
||||||
%dt= t(:org_name)
|
%dt= t(:org_name)
|
||||||
%dd= @version.reify.org_name
|
%dd= contact.org_name
|
||||||
|
|
||||||
%dt= t(:street)
|
%dt= t(:street)
|
||||||
%dd= @version.reify.street.to_s.gsub("\n", '<br>').html_safe
|
%dd= contact.street.to_s.gsub("\n", '<br>').html_safe
|
||||||
|
|
||||||
%dt= t(:city)
|
%dt= t(:city)
|
||||||
%dd= @version.reify.city
|
%dd= contact.city
|
||||||
|
|
||||||
%dt= t(:zip)
|
%dt= t(:zip)
|
||||||
%dd= @version.reify.zip
|
%dd= contact.zip
|
||||||
|
|
||||||
%dt= t(:state)
|
%dt= t(:state)
|
||||||
%dd= @version.reify.state
|
%dd= contact.state
|
||||||
|
|
||||||
%dt= t(:country)
|
%dt= t(:country)
|
||||||
%dd= @version.reify.country
|
%dd= contact.country
|
||||||
|
|
||||||
|
|
||||||
%span{:style => "padding-right:10px; float: right;"}
|
%span{:style => "padding-right:10px; float: right;"}
|
||||||
|
|
|
@ -55,15 +55,15 @@
|
||||||
= t(:action)
|
= t(:action)
|
||||||
%tbody
|
%tbody
|
||||||
- @versions.each do |version|
|
- @versions.each do |version|
|
||||||
- if version.reify
|
- if domain = version.reify
|
||||||
%tr
|
%tr
|
||||||
%td= link_to(version.reify.name, admin_domain_version_path(version.id))
|
%td= link_to(domain.name, admin_domain_version_path(version.id))
|
||||||
%td
|
%td
|
||||||
- if version.reify.registrant
|
- if domain.registrant
|
||||||
= link_to(version.reify.registrant, admin_registrant_path(version.reify.registrant))
|
= domain.registrant
|
||||||
%td
|
%td
|
||||||
- if version.reify.registrar
|
- if domain.registrar
|
||||||
= link_to(version.reify.registrar, admin_registrar_path(version.reify.registrar))
|
= link_to(domain.registrar, admin_registrar_path(domain.registrar))
|
||||||
%td= l(version.created_at, format: :short)
|
%td= l(version.created_at, format: :short)
|
||||||
%td= version.event
|
%td= version.event
|
||||||
|
|
||||||
|
@ -72,6 +72,8 @@
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= paginate @versions
|
= paginate @versions
|
||||||
.col-md-6.text-right
|
.col-md-6.text-right
|
||||||
|
.pagination
|
||||||
|
= t(:result_count, count: @versions.total_count)
|
||||||
|
|
||||||
|
|
||||||
:coffee
|
:coffee
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
- registrant = Contact.where(id: children[:registrant])
|
- registrant = Contact.where(id: children[:registrant])
|
||||||
- event = @version.event
|
- event = @version.event
|
||||||
- creator = plain_username(@version.terminator)
|
- creator = plain_username(@version.terminator)
|
||||||
|
- domain = @version.reify
|
||||||
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
|
@ -21,11 +22,13 @@
|
||||||
.panel-body
|
.panel-body
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t(:name)
|
%dt= t(:name)
|
||||||
%dd= link_to(@version.reify.name, admin_domain_path(@version.item_id))
|
%dd= link_to(domain.name, admin_domain_path(@version.item_id))
|
||||||
|
%dt= t(:registered_at)
|
||||||
|
%dd= l(domain.registered_at, format: :short)
|
||||||
%dt= t(:statuses)
|
%dt= t(:statuses)
|
||||||
%dd
|
%dd
|
||||||
- if @version.reify.statuses.present?
|
- if domain.statuses.present?
|
||||||
- @version.reify.statuses.each do |s|
|
- domain.statuses.each do |s|
|
||||||
= s
|
= s
|
||||||
%dt= t(:registrant)
|
%dt= t(:registrant)
|
||||||
%dd
|
%dd
|
||||||
|
@ -59,7 +62,7 @@
|
||||||
= ns[:ipv6]
|
= ns[:ipv6]
|
||||||
%br
|
%br
|
||||||
%dt= t(:registrar)
|
%dt= t(:registrar)
|
||||||
%dd= @version.reify.registrar.name
|
%dd= domain.registrar.name
|
||||||
%span{:style => "padding-right:10px; padding-top:40px; float: right; bottom: 10px;"}
|
%span{:style => "padding-right:10px; padding-top:40px; float: right; bottom: 10px;"}
|
||||||
- if @version.previous
|
- if @version.previous
|
||||||
= link_to(t(:previous),
|
= link_to(t(:previous),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue