From 0e6ffd0baa7e0a9bb48a072209b9b64d60487f41 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Tue, 19 Nov 2019 14:27:43 +0100 Subject: [PATCH] Fix table layout: tbody was wrapped in thead --- app/views/users/dossiers/index.html.haml | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/app/views/users/dossiers/index.html.haml b/app/views/users/dossiers/index.html.haml index 9475432c3..fc4f1d4ab 100644 --- a/app/views/users/dossiers/index.html.haml +++ b/app/views/users/dossiers/index.html.haml @@ -30,26 +30,26 @@ %th.status-col Statut %th.updated-at-col Mis à jour %th - %tbody - - @dossiers.each do |dossier| - %tr{ data: { 'dossier-id': dossier.id } } - %td.folder-col - = link_to(url_for_dossier(dossier), class: 'cell-link') do - %span.icon.folder - %td.number-col - = link_to(url_for_dossier(dossier), class: 'cell-link') do - = dossier.id - %td - = link_to(url_for_dossier(dossier), class: 'cell-link') do - = procedure_libelle(dossier.procedure) - %td.status-col - = link_to(url_for_dossier(dossier), class: 'cell-link') do - = render partial: 'shared/dossiers/status_badge', locals: { dossier: dossier } - %td.updated-at-col - = link_to(url_for_dossier(dossier), class: 'cell-link') do - = try_format_date(dossier.updated_at) - %td.action-col.action-col - = render partial: 'dossier_actions', locals: { dossier: dossier } + %tbody + - @dossiers.each do |dossier| + %tr{ data: { 'dossier-id': dossier.id } } + %td.folder-col + = link_to(url_for_dossier(dossier), class: 'cell-link') do + %span.icon.folder + %td.number-col + = link_to(url_for_dossier(dossier), class: 'cell-link') do + = dossier.id + %td + = link_to(url_for_dossier(dossier), class: 'cell-link') do + = procedure_libelle(dossier.procedure) + %td.status-col + = link_to(url_for_dossier(dossier), class: 'cell-link') do + = render partial: 'shared/dossiers/status_badge', locals: { dossier: dossier } + %td.updated-at-col + = link_to(url_for_dossier(dossier), class: 'cell-link') do + = try_format_date(dossier.updated_at) + %td.action-col.action-col + = render partial: 'dossier_actions', locals: { dossier: dossier } = paginate(@dossiers) - if current_user.feedbacks.empty? || current_user.feedbacks.last.created_at < 1.month.ago