fix(pj_template): private proxy template url so their links are non expirable

Closes #7920
This commit is contained in:
Colin Darie 2022-12-01 17:57:53 +01:00
parent 6f5cd5a2ad
commit b9d6397a9b
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
8 changed files with 52 additions and 5 deletions

View file

@ -1,4 +1,4 @@
= render Dsfr::DownloadComponent.new(attachment: attachment, name: "Modèle à télécharger") do |c|
= render Dsfr::DownloadComponent.new(attachment: champ.type_de_champ.piece_justificative_template, url: champs_piece_justificative_template_path(champ), name: "Modèle à télécharger") do |c|
- if administrateur_signed_in?
- c.with_right do
%span.fr-ml-2w.fr-text--xs.fr-text-mention--grey.visible-on-previous-hover