diff --git a/app/assets/stylesheets/left_pannel.scss b/app/assets/stylesheets/left_pannel.scss index 7debdf58c..0ba2276ff 100644 --- a/app/assets/stylesheets/left_pannel.scss +++ b/app/assets/stylesheets/left_pannel.scss @@ -64,17 +64,27 @@ width: 200px; margin-top: 20px; } - .tips { - margin: 0 10px 0 5px; + .notifications { + margin: 20px 10px 0 5px; .fa { - color: #FFFFFF; - font-size: 40px; - width: inherit; - padding: 5px; + font-size: 25px; + width: 100%; + margin: 0 0 15px 0; } - .notice { - font-size: 18px; - display: initial; + .notification { + margin: 10px 0 10px 0; + .type { + margin-bottom: 20px; + } + .updated-at { + color: #CCCCCC; + font-size: 12px; + text-align: left; + } + .split-hr { + width: 40px; + margin: auto; + } } } } diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index edb011739..01bfe97e3 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -39,4 +39,4 @@ class NotificationService 'Notification par défaut' end end -end \ No newline at end of file +end diff --git a/app/services/sync_credentials_service.rb b/app/services/sync_credentials_service.rb index 690323759..491ec1d55 100644 --- a/app/services/sync_credentials_service.rb +++ b/app/services/sync_credentials_service.rb @@ -35,4 +35,4 @@ class SyncCredentialsService end end end -end \ No newline at end of file +end 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 a47e64175..6d3e227b1 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 @@ -30,6 +30,10 @@ %div.split-hr-left %div.dossier-state= @facade.dossier.display_state %div.split-hr-left - %div.tips.hidden - %i.fa.fa-lightbulb-o - %div.notice= "Ceci est un bloc destiné à contenir des informations sur ce que vous êtes censé pouvoir faire à ce stade de traitement du dossier." + %div.notifications + %i.fa.fa-bell-o + - @facade.dossier.notifications.limit(5).each do |notification| + .notification + .updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M') + .type= notification.liste.last + .split-hr