19 lines
699 B
Text
19 lines
699 B
Text
- if dossier.en_construction_ou_instruction?
|
|
- if current_gestionnaire.follow?(dossier)
|
|
= link_to unfollow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
|
%i.unfollow>
|
|
ne plus suivre
|
|
- else
|
|
= link_to follow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
|
%i.follow>
|
|
suivre le dossier
|
|
|
|
- elsif dossier.termine?
|
|
- if dossier.archived
|
|
= link_to unarchive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
|
%i.unarchive>
|
|
désarchiver le dossier
|
|
- else
|
|
= link_to archive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
|
%i.archive>
|
|
archiver le dossier
|