Empty alt attribute for decorative images

This commit is contained in:
Corinne Durrmeyer 2024-08-05 17:19:11 +02:00
parent 77a84358a0
commit 3962c24892
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -1,8 +1,5 @@
.procedure-logos
- procedure_logo_alt = ''
- if procedure.service.present?
- procedure_logo_alt = "#{procedure.service.nom} #{procedure.service.organisme}"
= image_tag procedure.logo_url, alt: procedure_logo_alt
= image_tag procedure.logo_url, alt: ''
- if procedure.euro_flag
= image_tag("flag_of_europe.svg", id: 'euro_flag', class: (!procedure.euro_flag ? "hidden" : ""))
%h1.fr-h2