Organisation table now presents the last updated column
This commit is contained in:
parent
fbbe57f873
commit
d80965673b
@ -11,7 +11,8 @@
|
||||
%th= sort_link @search, :city
|
||||
%th= sort_link @search, :department
|
||||
%th= sort_link @search, :region_name, Orga.human_attribute_name(:region)
|
||||
%th= sort_link @search, :url
|
||||
%th= sort_link @search, :updated_at, Orga.human_attribute_name(:updated_at)
|
||||
%th/
|
||||
%th/
|
||||
|
||||
%tbody
|
||||
@ -28,11 +29,16 @@
|
||||
%td= orga.city
|
||||
%td= orga.department
|
||||
%td= orga.region
|
||||
%td= link_to orga.url, orga.url
|
||||
%td
|
||||
= link_to t('show'),
|
||||
orga_path(orga, q: params[:q], page: params[:page]),
|
||||
class: :view_link
|
||||
- if orga.updated_at.present?
|
||||
= l orga.updated_at.to_date
|
||||
%td
|
||||
= link_to orga.url do
|
||||
%em.fa.fa-external-link
|
||||
%td
|
||||
= link_to orga_path(orga, q: params[:q], page: params[:page]),
|
||||
class: :view_link do
|
||||
%em.fa.fa-eye
|
||||
|
||||
= paginate @orgas
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user