fix(recherche#index): move paginate outside of table row loop
This commit is contained in:
parent
6336033978
commit
bb96d49743
1 changed files with 2 additions and 4 deletions
|
@ -1,13 +1,12 @@
|
||||||
- content_for(:title, "Recherche : #{@search_terms}")
|
- content_for(:title, "Recherche : #{@search_terms}")
|
||||||
- pagination = paginate @paginated_ids
|
|
||||||
|
|
||||||
.container
|
.container
|
||||||
.page-title
|
.page-title
|
||||||
Résultat de la recherche :
|
Résultat de la recherche :
|
||||||
= t('pluralize.dossier_trouve', count: @dossiers_count)
|
= t('pluralize.dossier_trouve', count: @dossiers_count)
|
||||||
|
|
||||||
= pagination
|
|
||||||
- if @projected_dossiers.present?
|
- if @projected_dossiers.present?
|
||||||
|
= paginate @paginated_ids
|
||||||
%table.table.dossiers-table.hoverable
|
%table.table.dossiers-table.hoverable
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
|
@ -97,8 +96,7 @@
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%td
|
%td
|
||||||
|
= paginate @paginated_ids
|
||||||
= pagination
|
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%h2 Aucun dossier correspondant à votre recherche n’a été trouvé
|
%h2 Aucun dossier correspondant à votre recherche n’a été trouvé
|
||||||
|
|
Loading…
Add table
Reference in a new issue