2017-07-11 15:58:31 +02:00
|
|
|
- if dossier.en_construction_ou_instruction?
|
2017-07-31 18:35:34 +02:00
|
|
|
- if dossier_is_followed
|
2018-02-21 13:42:11 +01:00
|
|
|
= link_to unfollow_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-12-12 14:51:44 +01:00
|
|
|
%span.icon.unfollow>
|
2017-10-05 19:21:21 +02:00
|
|
|
Ne plus suivre
|
2017-07-11 15:58:31 +02:00
|
|
|
- else
|
2018-02-21 13:42:11 +01:00
|
|
|
= link_to follow_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-12-12 14:51:44 +01:00
|
|
|
%span.icon.follow>
|
2017-10-05 19:21:21 +02:00
|
|
|
Suivre le dossier
|
2017-07-11 15:58:31 +02:00
|
|
|
|
|
|
|
- elsif dossier.termine?
|
|
|
|
- if dossier.archived
|
2018-02-21 13:42:11 +01:00
|
|
|
= link_to unarchive_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-12-12 14:51:44 +01:00
|
|
|
%span.icon.unarchive>
|
2017-10-05 19:21:21 +02:00
|
|
|
Désarchiver le dossier
|
2017-07-11 15:58:31 +02:00
|
|
|
- else
|
2018-02-21 13:42:11 +01:00
|
|
|
= link_to archive_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-12-12 14:51:44 +01:00
|
|
|
%span.icon.archive>
|
2017-10-05 19:21:21 +02:00
|
|
|
Archiver le dossier
|