Client: Domain history in domains_list#show

This commit is contained in:
Andres Keskküla 2014-10-06 14:44:13 +03:00
parent d82479485c
commit f77daf2c6d
2 changed files with 23 additions and 16 deletions

View file

@ -21,3 +21,7 @@
.col-md-12= render 'admin/domains/partials/nameservers'
.row
.col-md-12= render 'admin/domains/partials/dnskeys'
- if @domain.versions.present?
= render 'client/shared/versions', versions: @domain.versions

View file

@ -1,21 +1,24 @@
.row
.col-md-12
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th
=t('shared.whodunnit')
%th
=t('shared.event')
%th
=t('shared.created_at')
%tbody
-versions.each do |version|
#nameservers.panel{ class: 'panel-default' }
.panel-heading.clearfix
= t('shared.history')
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%td= whodunnit_with_protocol(version.whodunnit)
%td= version.event
%td= version.created_at
%th
=t('shared.whodunnit')
%th
=t('shared.event')
%th
=t('shared.created_at')
%tbody
-versions.each do |version|
%tr
%td= whodunnit_with_protocol(version.whodunnit)
%td= version.event
%td= version.created_at