mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Fixed date displaying in versions and histories
This commit is contained in:
parent
f94dccfaa4
commit
9b76e4d84e
4 changed files with 14 additions and 14 deletions
|
@ -9,14 +9,13 @@
|
|||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'name', t('shared.name'))
|
||||
= t('shared.name')
|
||||
%th{class: 'col-xs-1'}
|
||||
= sort_link(@q, 'code', t('shared.code'))
|
||||
= t('shared.contact_id')
|
||||
%th{class: 'col-xs-1'}
|
||||
whodunnit
|
||||
= #sort_link(@q, 'ident', t('shared.identity_code'))
|
||||
= sort_link(@q, 'whodunnit', t('shared.whodunnit'))
|
||||
%th{class: 'col-xs-2'}
|
||||
deleted_at
|
||||
= sort_link(@q, 'created_at', t('shared.created_at'))
|
||||
%tbody
|
||||
- @contacts.each do |version|
|
||||
- contact = version.reify
|
||||
|
@ -25,7 +24,7 @@
|
|||
%td= contact.name #link_to(x, admin_contact_path(x))
|
||||
%td= contact.code #link_to(x, admin_contact_path(x))
|
||||
%td= version.whodunnit if version
|
||||
%td= version.created_at if version
|
||||
%td= l(version.created_at, format: :short) if version
|
||||
.row
|
||||
.col-md-12
|
||||
= paginate @contacts
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
%td= x.code #link_to(x, admin_contact_path(x))
|
||||
%td= x.versions.last.whodunnit if x.versions.last
|
||||
%td= x.versions.last.event if x.versions.last
|
||||
%td= x.versions.last.created_at if x.versions.last
|
||||
%td= l(x.versions.last.created_at, format: :short) if x.versions.last
|
||||
%td= link_to(t('shared.history'), admin_contact_version_path(x), class: 'btn btn-primary btn-xs')
|
||||
.row
|
||||
.col-md-12
|
||||
|
|
|
@ -9,12 +9,13 @@
|
|||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'name', t('shared.name'))
|
||||
%th{class: 'col-xs-1'}
|
||||
whodunnit
|
||||
= #sort_link(@q, 'ident', t('shared.identity_code'))
|
||||
= t('shared.name')
|
||||
%th{class: 'col-xs-2'}
|
||||
deleted_at
|
||||
= t('shared.status')
|
||||
%th{class: 'col-xs-1'}
|
||||
= sort_link(@q, 'whodunnit', t('shared.whodunnit'))
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'created_at', t('shared.created_at'))
|
||||
%tbody
|
||||
- @domains.each do |version|
|
||||
- domain = version.reify
|
||||
|
@ -23,7 +24,7 @@
|
|||
%td= domain.name #link_to(x, admin_contact_path(x))
|
||||
%td= domain.status #link_to(x, admin_contact_path(x))
|
||||
%td= version.whodunnit if version
|
||||
%td= version.created_at if version
|
||||
%td= l(version.created_at, format: :short) if version
|
||||
.row
|
||||
.col-md-12
|
||||
= paginate @domains
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
%td= domain.owner_contact.name if domain.owner_contact
|
||||
%td= domain.versions.last.whodunnit if domain.versions.last
|
||||
%td= domain.versions.last.event if domain.versions.last
|
||||
%td= domain.versions.last.created_at if domain.versions.last
|
||||
%td= l(domain.versions.last.created_at, format: :short) if domain.versions.last
|
||||
%td= link_to(t('shared.history'), admin_domain_version_path(domain), class: 'btn btn-primary btn-xs')
|
||||
|
||||
.row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue