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-07-13 15:14:03 +02:00
|
|
|
|
2017-07-03 14:05:55 +02:00
|
|
|
.procedure-details
|
|
|
|
%p.procedure-title
|
2017-08-28 16:44:06 +02:00
|
|
|
- if p.logo.present?
|
|
|
|
= image_tag p.logo, class: "procedure-logo"
|
2017-07-13 11:09:50 +02:00
|
|
|
= link_to(p.libelle, procedure_path(p))
|
2017-07-03 14:05:55 +02:00
|
|
|
|
|
|
|
%ul.procedure-stats.flex
|
|
|
|
%li
|
2017-07-17 11:22:12 +02:00
|
|
|
- a_suivre_count = @dossiers_a_suivre_count_per_procedure[p.id] || 0
|
2017-07-03 14:05:55 +02:00
|
|
|
.stats-number
|
2017-07-17 11:22:12 +02:00
|
|
|
= a_suivre_count
|
2017-07-03 14:05:55 +02:00
|
|
|
.stats-legend
|
2017-07-17 11:22:12 +02:00
|
|
|
à suivre
|
2017-07-03 14:05:55 +02:00
|
|
|
%li
|
2017-08-30 11:12:58 +02:00
|
|
|
- if @notifications_count_per_procedure[p.id].present?
|
|
|
|
%span.notifications{ 'aria-label': "notifications" }
|
2017-07-03 14:05:55 +02:00
|
|
|
- followed_count = @followed_dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= followed_count
|
|
|
|
.stats-legend
|
2017-07-13 14:47:17 +02:00
|
|
|
= t('pluralize.followed', count: followed_count)
|
2017-07-17 11:22:12 +02:00
|
|
|
%li
|
|
|
|
- termines_count = @dossiers_termines_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= termines_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.processed', count: termines_count)
|
2017-07-13 14:50:02 +02:00
|
|
|
%li
|
|
|
|
- dossier_count = @dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= dossier_count
|
|
|
|
.stats-legend
|
|
|
|
= t('pluralize.case', count: dossier_count)
|
2017-07-03 14:05:55 +02:00
|
|
|
%li
|
|
|
|
- archived_count = @dossiers_archived_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= archived_count
|
|
|
|
.stats-legend
|
2017-07-13 14:47:17 +02:00
|
|
|
= t('pluralize.archived', count: archived_count)
|
2017-07-03 16:29:29 +02:00
|
|
|
|
|
|
|
- if p.archivee?
|
|
|
|
.procedure-status
|
|
|
|
%span.label Archivée
|