diff --git a/app/views/orgas/index.html.haml b/app/views/orgas/index.html.haml index 70051072..466ec72f 100644 --- a/app/views/orgas/index.html.haml +++ b/app/views/orgas/index.html.haml @@ -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