From dd2d666347acbd1cb2d2d7b1dca9f9943bc372f1 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Fri, 8 Sep 2017 14:46:25 +0200 Subject: [PATCH] Limit long breadcrumbs, by truncating procedure name --- app/views/new_gestionnaire/dossiers/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_gestionnaire/dossiers/_header.html.haml b/app/views/new_gestionnaire/dossiers/_header.html.haml index 46dcf1265..d464b6a14 100644 --- a/app/views/new_gestionnaire/dossiers/_header.html.haml +++ b/app/views/new_gestionnaire/dossiers/_header.html.haml @@ -3,7 +3,7 @@ .flex.justify-between %ul.breadcrumbs %li - = link_to dossier.procedure.libelle, procedure_path(dossier.procedure) + = link_to dossier.procedure.libelle.truncate_words(10), procedure_path(dossier.procedure), title: dossier.procedure.libelle %li = "Dossier nº #{dossier.id}" %div