Merge pull request #3530 from betagouv/frederic/fix_manager_lien_procedure_brouillon
Fix link to procedure brouillon in manager
This commit is contained in:
commit
55a4a1ff8e
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue