diff --git a/app/views/new_gestionnaire/procedures/index.html.haml b/app/views/new_gestionnaire/procedures/index.html.haml index 084518d73..c4faed67a 100644 --- a/app/views/new_gestionnaire/procedures/index.html.haml +++ b/app/views/new_gestionnaire/procedures/index.html.haml @@ -37,6 +37,8 @@ %li %object = link_to(procedure_path(p, statut: 'traites')) do + - if current_gestionnaire.notifications_per_procedure(:termine)[p.id].present? + %span.notifications{ 'aria-label': "notifications" } - termines_count = @dossiers_termines_count_per_procedure[p.id] || 0 .stats-number = termines_count diff --git a/app/views/new_gestionnaire/procedures/show.html.haml b/app/views/new_gestionnaire/procedures/show.html.haml index 04414b874..b0c4762ef 100644 --- a/app/views/new_gestionnaire/procedures/show.html.haml +++ b/app/views/new_gestionnaire/procedures/show.html.haml @@ -23,6 +23,8 @@ %span.badge= @followed_dossiers.count %li{ class: (@statut == 'traites') ? 'active' : nil }> + - if current_gestionnaire.notifications_for_procedure(@procedure, :termine).present? + %span.notifications{ 'aria-label': 'notifications' } = link_to(procedure_path(@procedure, statut: 'traites')) do = t('pluralize.processed', count: @termines_dossiers.count) %span.badge= @termines_dossiers.count @@ -94,7 +96,7 @@ %td.folder-col = link_to(dossier_path(@procedure, dossier), class: 'cell-link') do %span.icon.folder - - if current_gestionnaire.notifications_for_procedure(@procedure).include?(dossier.id) + - if current_gestionnaire.notifications_for_procedure(@procedure, :not_archived).include?(dossier.id) %span.notifications{ 'aria-label': 'notifications' } %td.number-col