mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Domain history to admin, added deleted domains info
This commit is contained in:
parent
c64fa8c132
commit
c49ec2b1c6
13 changed files with 80 additions and 245 deletions
|
@ -1,40 +0,0 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs
|
||||
= "#{t('shared.contact_details')}"
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
|
||||
%hr
|
||||
.row
|
||||
.col-md-12
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th
|
||||
whodunnit
|
||||
%th
|
||||
event
|
||||
%th
|
||||
created_at
|
||||
|
||||
%tbody
|
||||
- @versions.each_with_index do |version, index|
|
||||
- contact = version.reify(has_one: true)
|
||||
- if contact
|
||||
%tr.clickable{"data-target" => "#accordion-#{index}", "data-toggle" => "collapse"}
|
||||
%td=version.whodunnit #contact.name if contact
|
||||
%td=version.event #contact.ident if contact
|
||||
%td=version.created_at #contact.email if contact
|
||||
|
||||
%tr
|
||||
%td
|
||||
.collapse{ id: "accordion-#{index}" }
|
||||
= render 'admin/contact_versions/history', contact: contact
|
||||
- else
|
||||
%tr
|
||||
%td=version.whodunnit #contact.name if contact
|
||||
%td=version.event #contact.ident if contact
|
||||
%td=version.created_at #contact.email if contact
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue