diff --git a/app/assets/stylesheets/sub_header.scss b/app/assets/stylesheets/sub_header.scss index a6602dc45..2bc9abb9d 100644 --- a/app/assets/stylesheets/sub_header.scss +++ b/app/assets/stylesheets/sub_header.scss @@ -10,4 +10,13 @@ .container { margin-bottom: -1px; } + + .breadcrumbs { + list-style: none; + padding-inline-start: 0; + + a:not(:hover) { + background-image: none; // remove DSFR underline + } + } } diff --git a/app/views/experts/avis/_header.html.haml b/app/views/experts/avis/_header.html.haml index 0b4e448f0..1fe7ea5e0 100644 --- a/app/views/experts/avis/_header.html.haml +++ b/app/views/experts/avis/_header.html.haml @@ -3,7 +3,9 @@ .flex.justify-between %ul.breadcrumbs %li= link_to('Avis', expert_all_avis_path) - %li= link_to(dossier.procedure.libelle.truncate_words(10), procedure_expert_avis_index_path(avis.procedure)) + %li + = link_to(dossier.procedure.libelle.truncate_words(10), procedure_expert_avis_index_path(avis.procedure), class: "fr-link") + = procedure_badge(dossier.procedure) %li= link_to("Dossier nº #{dossier.id}", expert_avis_path(avis.procedure, avis)) .header-actions diff --git a/app/views/instructeurs/avis/_header.html.haml b/app/views/instructeurs/avis/_header.html.haml index 4135c8d58..5e5adba89 100644 --- a/app/views/instructeurs/avis/_header.html.haml +++ b/app/views/instructeurs/avis/_header.html.haml @@ -2,7 +2,9 @@ .container %ul.breadcrumbs %li= link_to('Avis', instructeur_all_avis_path) - %li= link_to(dossier.procedure.libelle, procedure_instructeur_avis_index_path(avis.procedure)) + %li + = link_to(procedure.libelle, procedure_instructeur_avis_index_path(avis.procedure), class: "fr-link") + = procedure_badge(dossier.procedure) %li= link_to("Dossier nº #{dossier.id}", instructeur_avis_path(avis.procedure, avis)) %nav.tabs diff --git a/app/views/instructeurs/dossiers/_header.html.haml b/app/views/instructeurs/dossiers/_header.html.haml index ce3536509..023676a0b 100644 --- a/app/views/instructeurs/dossiers/_header.html.haml +++ b/app/views/instructeurs/dossiers/_header.html.haml @@ -3,10 +3,8 @@ .flex.justify-between %ul.breadcrumbs %li - = link_to instructeur_procedure_path(dossier.procedure), title: dossier.procedure.libelle do - - if dossier.procedure.brouillon? - %span.badge démarche en test - = dossier.procedure.libelle.truncate_words(10) + = link_to dossier.procedure.libelle.truncate_words(10), instructeur_procedure_path(dossier.procedure), title: dossier.procedure.libelle, class: "fr-link" + = procedure_badge(dossier.procedure) %li = "Dossier nº #{dossier.id}"