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
1 changed files with 11 additions and 5 deletions

View File

@ -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