Organisation table now presents the last updated column

This commit is contained in:
echarp 2015-12-27 15:34:02 +01:00
parent fbbe57f873
commit d80965673b

View File

@ -11,7 +11,8 @@
%th= sort_link @search, :city %th= sort_link @search, :city
%th= sort_link @search, :department %th= sort_link @search, :department
%th= sort_link @search, :region_name, Orga.human_attribute_name(:region) %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/ %th/
%tbody %tbody
@ -28,11 +29,16 @@
%td= orga.city %td= orga.city
%td= orga.department %td= orga.department
%td= orga.region %td= orga.region
%td= link_to orga.url, orga.url
%td %td
= link_to t('show'), - if orga.updated_at.present?
orga_path(orga, q: params[:q], page: params[:page]), = l orga.updated_at.to_date
class: :view_link %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 = paginate @orgas