2021-04-26 10:35:22 +02:00
|
|
|
- if Dossier::EN_CONSTRUCTION_OU_INSTRUCTION.include?(state)
|
2017-07-31 18:35:34 +02:00
|
|
|
- if dossier_is_followed
|
2021-04-26 10:35:22 +02:00
|
|
|
= link_to unfollow_instructeur_dossier_path(procedure_id, dossier_id), 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
|
2021-04-26 10:35:22 +02:00
|
|
|
= link_to follow_instructeur_dossier_path(procedure_id, dossier_id), 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
|
|
|
|
2021-04-26 10:35:22 +02:00
|
|
|
- elsif Dossier::TERMINE.include?(state)
|
|
|
|
- if archived
|
|
|
|
= link_to unarchive_instructeur_dossier_path(procedure_id, dossier_id), 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
|
2021-04-26 10:35:22 +02:00
|
|
|
= link_to archive_instructeur_dossier_path(procedure_id, dossier_id), 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
|