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' .col-md-12= render 'admin/domains/partials/nameservers'
.row .row
.col-md-12= render 'admin/domains/partials/dnskeys' .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 .row
.col-md-12 .col-md-12
.table-responsive #nameservers.panel{ class: 'panel-default' }
%table.table.table-hover.table-bordered.table-condensed .panel-heading.clearfix
%thead = t('shared.history')
%tr .table-responsive
%th %table.table.table-hover.table-bordered.table-condensed
=t('shared.whodunnit') %thead
%th
=t('shared.event')
%th
=t('shared.created_at')
%tbody
-versions.each do |version|
%tr %tr
%td= whodunnit_with_protocol(version.whodunnit) %th
%td= version.event =t('shared.whodunnit')
%td= version.created_at %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