internetee-registry/app/views/client/contact_versions/index.haml
2014-10-06 10:48:27 +03:00

35 lines
1.2 KiB
Text

.row
.col-sm-6
%h2.text-center-xs= t('shared.contacts')
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t('shared.create_new_contact'), new_client_contact_path, class: 'btn btn-primary')
%hr
.row
.col-md-12
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-2'}
= t('shared.event')
%th{class: 'col-xs-2'}
= t('shared.whodunnit')
%th{class: 'col-xs-2'}
= t('shared.created_at')
%th{class: 'col-xs-1'}
= t('shared.contact')
%th{class: 'col-xs-1'}
= t('shared.details')
=# sort_link(@q, 'email', t('shared.email'))
%tbody
- @versions.each do |x|
%tr
%td= x.event
%td= whodunnit_with_protocol(x.whodunnit)
%td= l(x.created_at, format: :short)
%td= link_to(t('shared.contact'), client_contact_path(x.item_id))
%td= link_to(t('shared.details'), client_contact_version_path(x, event: x.event))
.row
.col-md-12
=# paginate @contacts