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;
|
||||
}
|
||||
#notifications_list {
|
||||
.no-notification {
|
||||
margin: 0 30px 0 30px;
|
||||
}
|
||||
.notification {
|
||||
padding: 10px 10px 10px 20px;
|
||||
.dossier, .updated-at {
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
%div.col-lg-8.col-md-8.col-sm-8.col-xs-8.title-no-expanse
|
||||
%div.carret-right
|
||||
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)}
|
||||
%div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
|
||||
= "Renseigner un SIRET"
|
||||
|
|
|
@ -29,9 +29,12 @@
|
|||
.badge.progress-bar-warning{title: 'Notifications'}
|
||||
= procedure[:unread_notifications]
|
||||
#notifications_list.hidden
|
||||
- @facade_data_view.unread_notifications.each do |notification|
|
||||
= link_to backoffice_dossier_path(notification.dossier.id) do
|
||||
.notification
|
||||
.dossier= notification.decorate.index_display[:dossier]
|
||||
.updated-at= notification.decorate.index_display[:date]
|
||||
.type= notification.decorate.index_display[:type]
|
||||
- if @facade_data_view.unread_notifications.empty?
|
||||
.no-notification= "Aucune notification pour le moment."
|
||||
- else
|
||||
- @facade_data_view.unread_notifications.each do |notification|
|
||||
= link_to backoffice_dossier_path(notification.dossier.id) do
|
||||
.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