Domain history to admin, added deleted domains info

This commit is contained in:
Andres Keskküla 2014-11-12 16:05:05 +02:00
parent c64fa8c132
commit c49ec2b1c6
13 changed files with 80 additions and 245 deletions

View file

@ -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