[Fix #1403] Apply dossier index style to recherche

This commit is contained in:
Mathieu Magnin 2018-02-07 20:40:15 +01:00
parent 3cad63b7b2
commit 9105e4e3f7

View file

@ -9,18 +9,21 @@
%table.table.dossiers-table.hoverable
%thead
%tr
%th Nº
%th.notification-col
%th.number-col Nº dossier
%th Procédure
%th Demandeur
%th Statut
%th.status-col Statut
%tbody
- @dossiers.each do |dossier|
/ # FIXME: here we have a n+1, we fire a request
/ (due to dossier_linked_path) per result
%tr
%td.folder-col
= link_to(dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link') do
%span.icon.folder
%td.number-col
= link_to(dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link') do
%span.icon.folder>
= dossier.id
%td= link_to(dossier.procedure.libelle, dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link')
%td= link_to(dossier.user.email, dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link')