Improve procedure logo on procedure#index

This commit is contained in:
Mathieu Magnin 2017-09-14 10:13:48 +02:00
parent fe7f772f96
commit b477adf586
2 changed files with 47 additions and 44 deletions

View file

@ -26,16 +26,15 @@
}
.procedure-logo {
margin-right: 16px;
width: 40px;
border-bottom: 1px solid $border-grey;
height: 93px;
width: 93px;
margin-right: 3 * $default-spacer;
}
.procedure-title {
min-height: 40px;
font-size: 20px;
margin-bottom: 16px;
padding-left: $default-spacer;
}
.procedure-status {

View file

@ -5,11 +5,15 @@
- @procedures.each do |p|
%li.procedure-item.flex.align-start
= link_to(procedure_path(p)) do
.flex
.procedure-logo
- if p.logo.present?
= image_tag p.logo, alt: "Logo de la procédure"
.procedure-details
%p.procedure-title
- if p.logo.present?
= image_tag p.logo, class: "procedure-logo"
#{p.libelle}
= p.libelle
%ul.procedure-stats.flex
%li