Skip to content

Commit

Permalink
Précise dans les templates que les images sont en svg
Browse files Browse the repository at this point in the history
Co-authored-by: Étienne Charignon <[email protected]>
  • Loading branch information
shanser and etienneCharignon committed Sep 28, 2020
1 parent f5f8dcc commit 6c810ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ div class: 'row' do
div class: 'col col-auto' do
div class: 'synthese-illettrisme-illustration mr-3' do
if pdf
span wicked_pdf_image_tag 'francais_mathematique'
span wicked_pdf_image_tag 'francais_mathematique.svg'
else
span image_tag 'francais_mathematique'
span image_tag 'francais_mathematique.svg'
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ div class: 'row' do
div class: 'synthese-illettrisme-illustration mb-4' do
code_niveau = t("#{niveau}.code", scope: scope)
if pdf
span wicked_pdf_image_tag competence.to_s
span wicked_pdf_image_tag "niveau#{code_niveau}" if niveau.present?
span wicked_pdf_image_tag "#{competence}.svg"
span wicked_pdf_image_tag "niveau#{code_niveau}.svg" if niveau.present?
else
span image_tag competence
span image_tag "niveau#{code_niveau}", alt: "Niveau #{code_niveau}" if niveau.present?
span image_tag "#{competence}.svg"
span image_tag "niveau#{code_niveau}.svg", alt: "Niveau #{code_niveau}" if niveau.present?
end
end
h2 class: 'mb-3' do
Expand Down
4 changes: 2 additions & 2 deletions app/views/admin/evaluations/_restitution_globale.arb
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ div class: 'admin_restitution_globale' do
div class: "jauge remplissage remplissage-#{interpretation}"
if pdf
span class: 'image-competence' do
wicked_pdf_image_tag competence.to_s
wicked_pdf_image_tag "#{competence}.svg"
end
else
span class: 'image-competence' do
image_tag competence
image_tag "#{competence}.svg"
end
end
div class: 'informations-competence' do
Expand Down

0 comments on commit 6c810ef

Please sign in to comment.