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
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to unfollow_instructeur_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
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to follow_instructeur_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
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to unarchive_instructeur_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
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to archive_instructeur_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
|