Add breadcrumbs

This commit is contained in:
Mathieu Magnin 2017-07-18 15:38:31 +02:00
parent 9aac9ba7cd
commit cf63fd6b04
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,28 @@
@import "colors";
@import "constants";
.breadcrumbs {
margin: $default-spacer 0;
li {
display: inline-block;
font-weight: bold;
font-size: 14px;
a {
color: $black;
}
&::after {
content: " > ";
}
&:last-child {
color: $blue;
&::after {
content: none;
}
}
}
}

View file

@ -1,5 +1,10 @@
.backoffice-header .backoffice-header
.container .container
%ul.breadcrumbs
%li
= link_to dossier.procedure.libelle, procedure_path(dossier.procedure)
%li
= "Dossier n° #{dossier.id}"
%ul.tabs %ul.tabs
%li %li
= link_to "Demande", "#", class: ("selected" if current_page?(dossier_path(dossier.procedure, dossier))) = link_to "Demande", "#", class: ("selected" if current_page?(dossier_path(dossier.procedure, dossier)))

View file

@ -97,6 +97,15 @@
= link_to "Onglet 3", "#" = link_to "Onglet 3", "#"
.container .container
%h2 Breadcrumbs
%ul.breadcrumbs
%li
= link_to "Procédure 123", "#"
%li
= "Dossier n° 38"
%h2 Layout deux colonnes %h2 Layout deux colonnes
.two-columns .two-columns