diff --git a/app/assets/stylesheets/left_pannel.scss b/app/assets/stylesheets/left_pannel.scss index c4fd4d485..99f9bb328 100644 --- a/app/assets/stylesheets/left_pannel.scss +++ b/app/assets/stylesheets/left_pannel.scss @@ -135,6 +135,13 @@ width: 100%; margin: 0 0 15px 0; } + .type-notif { + font-size: 16px; + float: left; + width: 30px; + height: 50px; + margin: 10px 0 0 0; + } .notification { margin: 10px 0 10px 10px; .type { diff --git a/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml b/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml index 6c2fd2e66..e29ed9332 100644 --- a/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml +++ b/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml @@ -38,15 +38,21 @@ .notification .updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M') - if ['champs'].include?(notification.type_notif) + .type-notif.fa.fa-list-alt - if notification.liste.size > 1 .type= "Plusieurs attributs ont été changés, dont: #{notification.liste.join(" ")}" - else .type= "Un attribut à été changé: #{notification.liste.last}" - elsif ['piece_justificative'].include?(notification.type_notif) + .type-notif.fa.fa-chain - if notification.liste.size > 1 .type= "Plusieurs pièces justificatives ont été changés, dont: #{notification.liste.join(" ")}" - else .type= "Une pièce justificative à été changée: #{notification.liste.last}" - else + - if notification.type_notif == "commentaire" + .type-notif.fa.fa-comments-o + - elsif notification.type_notif == "submited" + .type-notif.fa.fa-thumbs-o-up .type= notification.liste.last .split-hr