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
|
|
|
|
= image_tag p.logo, class: "procedure-logo"
|
|
|
|
.procedure-details
|
|
|
|
%p.procedure-title
|
|
|
|
= link_to p.libelle, backoffice_dossiers_procedure_path(p)
|
|
|
|
|
|
|
|
%ul.procedure-stats.flex
|
|
|
|
%li
|
|
|
|
- dossier_count = @dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= dossier_count
|
|
|
|
.stats-legend
|
2017-07-04 17:14:59 +02:00
|
|
|
= "dossier".pluralize(dossier_count, :fr)
|
2017-07-03 14:05:55 +02:00
|
|
|
%li
|
|
|
|
- nouveaux_count = @dossiers_nouveaux_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= nouveaux_count
|
|
|
|
.stats-legend
|
2017-07-04 17:14:59 +02:00
|
|
|
= "nouveau".pluralize(nouveaux_count, :fr)
|
2017-07-03 14:05:55 +02:00
|
|
|
%li
|
|
|
|
- followed_count = @followed_dossiers_count_per_procedure[p.id] || 0
|
|
|
|
.stats-number
|
|
|
|
= followed_count
|
|
|
|
.stats-legend
|
2017-07-04 17:14:59 +02:00
|
|
|
= "suivi".pluralize(followed_count, :fr)
|
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-04 17:14:59 +02:00
|
|
|
= "archivé".pluralize(archived_count, :fr)
|
2017-07-03 16:29:29 +02:00
|
|
|
|
|
|
|
- if p.archivee?
|
|
|
|
.procedure-status
|
|
|
|
%span.label Archivée
|