2017-07-03 14:05:55 +02:00
|
|
|
.container
|
2017-07-03 15:23:02 +02:00
|
|
|
%h1.backoffice-title Procédures
|
2017-07-03 14:05:55 +02:00
|
|
|
|
|
|
|
%ul.procedure-list
|
|
|
|
- @procedures.each do |p|
|
|
|
|
%li.procedure-item.flex.align-start
|
2017-09-05 17:34:07 +02:00
|
|
|
= link_to(procedure_path(p)) do
|
2017-09-14 10:13:48 +02:00
|
|
|
.flex
|
|
|
|
|
|
|
|
.procedure-logo
|
2017-09-05 17:34:07 +02:00
|
|
|
- if p.logo.present?
|
2017-09-14 10:13:48 +02:00
|
|
|
= image_tag p.logo, alt: "Logo de la procédure"
|
|
|
|
|
|
|
|
.procedure-details
|
|
|
|
%p.procedure-title
|
|
|
|
= p.libelle
|
2017-07-13 15:14:03 +02:00
|
|
|
|
2017-09-14 10:13:48 +02:00
|
|
|
%ul.procedure-stats.flex
|
|
|
|
%li
|
|
|
|
- a_suivre_count = @dossiers_a_suivre_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= a_suivre_count
|
|
|
|
.stats-legend
|
|
|
|
à suivre
|
|
|
|
%li
|
|
|
|
- if @notifications_count_per_procedure[p.id].present?
|
|
|
|
%span.notifications{ 'aria-label': "notifications" }
|
|
|
|
- followed_count = @followed_dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= followed_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.followed', count: followed_count)
|
|
|
|
%li
|
|
|
|
- termines_count = @dossiers_termines_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= termines_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.processed', count: termines_count)
|
|
|
|
%li
|
|
|
|
- dossier_count = @dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= dossier_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.case', count: dossier_count)
|
|
|
|
%li
|
|
|
|
- archived_count = @dossiers_archived_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= archived_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.archived', count: archived_count)
|
2017-07-03 14:05:55 +02:00
|
|
|
|
2017-09-14 10:13:48 +02:00
|
|
|
- if p.archivee?
|
|
|
|
.procedure-status
|
|
|
|
%span.label Archivée
|