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,6 +29,9 @@
|
||||||
.badge.progress-bar-warning{title: 'Notifications'}
|
.badge.progress-bar-warning{title: 'Notifications'}
|
||||||
= procedure[:unread_notifications]
|
= procedure[:unread_notifications]
|
||||||
#notifications_list.hidden
|
#notifications_list.hidden
|
||||||
|
- if @facade_data_view.unread_notifications.empty?
|
||||||
|
.no-notification= "Aucune notification pour le moment."
|
||||||
|
- else
|
||||||
- @facade_data_view.unread_notifications.each do |notification|
|
- @facade_data_view.unread_notifications.each do |notification|
|
||||||
= link_to backoffice_dossier_path(notification.dossier.id) do
|
= link_to backoffice_dossier_path(notification.dossier.id) do
|
||||||
.notification
|
.notification
|
||||||
|
|
Loading…
Reference in a new issue