mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Client: Show contact history in contact_list#show
This commit is contained in:
parent
bb6afc7e87
commit
6419aef849
2 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
21
app/views/client/shared/_versions.haml
Normal file
21
app/views/client/shared/_versions.haml
Normal 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue