views: truncate procedure title in Experts breadcrumbs

This commit is contained in:
Pierre de La Morinerie 2022-05-10 12:55:16 +02:00
parent 3bdbf7bb4c
commit 2bd4599190

View file

@ -3,7 +3,7 @@
.flex.justify-between .flex.justify-between
%ul.breadcrumbs %ul.breadcrumbs
%li= link_to('Avis', expert_all_avis_path) %li= link_to('Avis', expert_all_avis_path)
%li= link_to(dossier.procedure.libelle, procedure_expert_avis_index_path(avis.procedure)) %li= link_to(dossier.procedure.libelle.truncate_words(10), procedure_expert_avis_index_path(avis.procedure))
%li= link_to("Dossier nº #{dossier.id}", expert_avis_path(avis.procedure, avis)) %li= link_to("Dossier nº #{dossier.id}", expert_avis_path(avis.procedure, avis))
.header-actions .header-actions