use backoffice-header in views

This commit is contained in:
Mathieu Magnin 2017-07-18 15:12:55 +02:00
parent c0eeec82c4
commit 9aac9ba7cd
3 changed files with 62 additions and 70 deletions

View file

@ -3,14 +3,6 @@
@import "constants";
#procedure-show {
.header {
background-color: $light-grey;
padding-top: $default-padding;
.container {
display: flex;
}
.procedure-logo {
margin-right: $default-padding;
}
@ -71,7 +63,6 @@
}
}
}
}
.dossiers-table {
margin: (2 * $default-padding) auto;

View file

@ -1,7 +1,8 @@
.container
.backoffice-header
.container
%ul.tabs
%li
= link_to "Demande", "#", class: ("selected" if request.path == dossier_path(dossier.procedure, dossier))
= link_to "Demande", "#", class: ("selected" if current_page?(dossier_path(dossier.procedure, dossier)))
%li
= link_to "Instruction", "#"
%li

View file

@ -1,6 +1,6 @@
#procedure-show
.header
.container
.backoffice-header
.container.flex
- if @procedure.logo.present?
= image_tag @procedure.logo, height: 40, class: 'procedure-logo'