Merge pull request #3530 from betagouv/frederic/fix_manager_lien_procedure_brouillon

Fix link to procedure brouillon in manager
This commit is contained in:
LeSim 2019-03-04 15:13:08 +01:00 committed by GitHub
commit 55a4a1ff8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,4 @@
- if field.data.present?
= link_to "/commencer/#{field.data}", commencer_url(path: field.data), target: '_blank'
= link_to Addressable::URI.parse(procedure_lien(field.resource)).path, procedure_lien(field.resource), target: '_blank'
- else
Plus en ligne

View file

@ -36,5 +36,10 @@ module TPS
config.active_job.queue_adapter = :delayed_job
config.action_view.sanitized_allowed_tags = ActionView::Base.sanitized_allowed_tags + ['u']
config.to_prepare do
# Make main application helpers available in administrate
Administrate::ApplicationController.helper(TPS::Application.helpers)
end
end
end