afficher le nom du service en alt si possible

This commit is contained in:
clemkeirua 2020-05-14 18:11:13 +02:00
parent a5be836a55
commit 9454017dd9

View file

@ -1,5 +1,8 @@
.procedure-logos
= image_tag procedure.logo_url, alt: "logo #{procedure.libelle}"
- 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
- if procedure.euro_flag
= image_tag("flag_of_europe.svg", id: 'euro_flag', class: (!procedure.euro_flag ? "hidden" : ""))
%h1.procedure-title