Merge pull request #7190 from betagouv/7108/add-data-collect-rules

feat(users/procedure/*): add link to texte_juridique or deliberation
This commit is contained in:
mfo 2022-04-25 14:37:25 +02:00 committed by GitHub
commit 6517cb6626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,15 @@
%ul
- politiques.each do |politique|
%li= politique
%p.mt-2.footer-header Cadre juridique :
%ul
- if procedure.deliberation.attached?
%li
= link_to url_for(procedure.deliberation), target: '_blank', rel: 'noopener' do
= "Texte cadrant la demande d'information"
- else
%li
= link_to "Texte juridique la demande d'information", procedure.cadre_juridique, target: '_blank', rel: 'noopener'
= render partial: 'users/general_footer_row', locals: { dossier: dossier }