Merge pull request #1919 from betagouv/frederic/fix_1825-enable_archived_procedure_preview

[Fix #1825] Also show previews for archived procedures
This commit is contained in:
gregoirenovel 2018-05-09 19:21:53 +02:00 committed by GitHub
commit a11ad1e1b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,7 @@
%td{ style: 'width: 750px;' }
= procedure.libelle
%td{ style: 'padding-right: 10px; padding-left: 10px; width: 60px;' }
- if !procedure.archivee?
= link_to('Consulter', apercu_procedure_path(id: procedure.id), target: "_blank")
= link_to('Consulter', apercu_procedure_path(id: procedure.id), target: "_blank")
%td
= link_to('Cloner', admin_procedure_clone_path(procedure.id, from_new_from_existing: true), 'data-method' => :put, class: 'btn-sm btn-primary clone-btn')
%td{ style: 'padding-left: 10px;' }