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
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to unfollow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-10-16 18:29:40 +02:00
|
|
|
.icon.unfollow>
|
2017-10-05 19:21:21 +02:00
|
|
|
Ne plus suivre
|
2017-07-11 15:58:31 +02:00
|
|
|
- else
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to follow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-10-16 18:29:40 +02:00
|
|
|
.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
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to unarchive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-10-16 18:29:40 +02:00
|
|
|
.icon.unarchive>
|
2017-10-05 19:21:21 +02:00
|
|
|
Désarchiver le dossier
|
2017-07-11 15:58:31 +02:00
|
|
|
- else
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to archive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-10-16 18:29:40 +02:00
|
|
|
.icon.archive>
|
2017-10-05 19:21:21 +02:00
|
|
|
Archiver le dossier
|