No notification message, when gestionnaire on index
This commit is contained in:
parent
77e30e233c
commit
aa2d2ad924
3 changed files with 13 additions and 7 deletions
|
@ -115,6 +115,9 @@
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
#notifications_list {
|
#notifications_list {
|
||||||
|
.no-notification {
|
||||||
|
margin: 0 30px 0 30px;
|
||||||
|
}
|
||||||
.notification {
|
.notification {
|
||||||
padding: 10px 10px 10px 20px;
|
padding: 10px 10px 10px 20px;
|
||||||
.dossier, .updated-at {
|
.dossier, .updated-at {
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
%div.col-lg-8.col-md-8.col-sm-8.col-xs-8.title-no-expanse
|
%div.col-lg-8.col-md-8.col-sm-8.col-xs-8.title-no-expanse
|
||||||
%div.carret-right
|
%div.carret-right
|
||||||
INFORMATIONS ENTREPRISE / ASSOCIATION
|
INFORMATIONS ENTREPRISE / ASSOCIATION
|
||||||
- if !@current_gestionnaire && ["draft", "replied", "initiated"].include?(@facade.dossier.state)
|
- if !@current_gestionnaire && ["draft", "updated", "replied", "initiated"].include?(@facade.dossier.state)
|
||||||
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
|
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
|
||||||
%div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
|
%div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
|
||||||
= "Renseigner un SIRET"
|
= "Renseigner un SIRET"
|
||||||
|
|
|
@ -29,9 +29,12 @@
|
||||||
.badge.progress-bar-warning{title: 'Notifications'}
|
.badge.progress-bar-warning{title: 'Notifications'}
|
||||||
= procedure[:unread_notifications]
|
= procedure[:unread_notifications]
|
||||||
#notifications_list.hidden
|
#notifications_list.hidden
|
||||||
- @facade_data_view.unread_notifications.each do |notification|
|
- if @facade_data_view.unread_notifications.empty?
|
||||||
= link_to backoffice_dossier_path(notification.dossier.id) do
|
.no-notification= "Aucune notification pour le moment."
|
||||||
.notification
|
- else
|
||||||
.dossier= notification.decorate.index_display[:dossier]
|
- @facade_data_view.unread_notifications.each do |notification|
|
||||||
.updated-at= notification.decorate.index_display[:date]
|
= link_to backoffice_dossier_path(notification.dossier.id) do
|
||||||
.type= notification.decorate.index_display[:type]
|
.notification
|
||||||
|
.dossier= notification.decorate.index_display[:dossier]
|
||||||
|
.updated-at= notification.decorate.index_display[:date]
|
||||||
|
.type= notification.decorate.index_display[:type]
|
||||||
|
|
Loading…
Reference in a new issue