2017-07-11 15:58:31 +02:00
|
|
|
- if dossier.en_construction_ou_instruction?
|
|
|
|
- if current_gestionnaire.follow?(dossier)
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to unfollow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-07-11 15:58:31 +02:00
|
|
|
%i.unfollow>
|
|
|
|
ne plus suivre
|
|
|
|
- else
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to follow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-07-11 15:58:31 +02:00
|
|
|
%i.follow>
|
|
|
|
suivre le dossier
|
|
|
|
|
|
|
|
- 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-07-11 15:58:31 +02:00
|
|
|
%i.unarchive>
|
|
|
|
désarchiver le dossier
|
|
|
|
- else
|
2017-07-06 16:33:36 +02:00
|
|
|
= link_to archive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
2017-07-11 15:58:31 +02:00
|
|
|
%i.archive>
|
|
|
|
archiver le dossier
|