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, :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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user