Basic archiving overhaul

This commit is contained in:
Andres Keskküla 2014-10-15 10:35:56 +03:00
parent 19846a3abf
commit 3b1e21d6eb
12 changed files with 260 additions and 30 deletions

View file

@ -30,12 +30,14 @@
= sort_link(@q, 'owner_contact_name', t('shared.owner'))
%th{class: 'col-xs-2'}
= sort_link(@q, 'valid_to', t('shared.valid_to'))
%th{class: 'col-xs-1'}
%tbody
- @domains.each do |x|
%tr
%td= link_to(x, client_domain_path(x))
%td= link_to(x.owner_contact, [:client, x.owner_contact])
%td= l(x.valid_to, format: :short)
%td= link_to t('shared.history'), client_domain_version_path(x.id), class: 'btn btn-primary'
.row
.col-md-12
= paginate @domains