Add breadcrumbs
This commit is contained in:
parent
9aac9ba7cd
commit
cf63fd6b04
3 changed files with 42 additions and 0 deletions
28
app/assets/stylesheets/new_design/breadcrumb.scss
Normal file
28
app/assets/stylesheets/new_design/breadcrumb.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,10 @@
|
|||
.backoffice-header
|
||||
.container
|
||||
%ul.breadcrumbs
|
||||
%li
|
||||
= link_to dossier.procedure.libelle, procedure_path(dossier.procedure)
|
||||
%li
|
||||
= "Dossier n° #{dossier.id}"
|
||||
%ul.tabs
|
||||
%li
|
||||
= link_to "Demande", "#", class: ("selected" if current_page?(dossier_path(dossier.procedure, dossier)))
|
||||
|
|
|
@ -97,6 +97,15 @@
|
|||
= link_to "Onglet 3", "#"
|
||||
|
||||
.container
|
||||
%h2 Breadcrumbs
|
||||
|
||||
%ul.breadcrumbs
|
||||
%li
|
||||
= link_to "Procédure 123", "#"
|
||||
%li
|
||||
= "Dossier n° 38"
|
||||
|
||||
|
||||
%h2 Layout deux colonnes
|
||||
|
||||
.two-columns
|
||||
|
|
Loading…
Reference in a new issue