style(instructeur/procedure): re-style header procedure title & dossier number

This commit is contained in:
Colin Darie 2022-10-06 19:27:23 +02:00
parent c5092fda12
commit 10802d15cc
4 changed files with 17 additions and 6 deletions

View file

@ -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
}
}
}

View file

@ -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

View file

@ -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

View file

@ -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}"