Client: Show contact history in contact_list#show

This commit is contained in:
Andres Keskküla 2014-10-06 13:15:43 +03:00
parent bb6afc7e87
commit 6419aef849
2 changed files with 25 additions and 0 deletions

View file

@ -13,3 +13,7 @@
.col-md-6= render 'admin/contacts/partials/address'
.row
.col-md-12= render 'client/contacts/partials/domains'
- if @contact.versions.present?
= render 'client/shared/versions', versions: @contact.versions

View file

@ -0,0 +1,21 @@
.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|
%tr
%td= whodunnit_with_protocol(version.whodunnit)
%td= version.event
%td= version.created_at