correctif(a11y): #8179, quand la messagerie est desactivée. supprime les br et utilise le nouveau mode de rendu pour afficher les horaires saisies par l'administration

This commit is contained in:
Martin 2023-02-22 11:19:24 +01:00 committed by mfo
parent fd203f5bb7
commit 8a44e6a03c
2 changed files with 7 additions and 7 deletions

View file

@ -6,11 +6,11 @@
Pour poser une question sur ce dossier, contactez : Pour poser une question sur ce dossier, contactez :
%p %p
= service.nom = service.nom
%br %p
= service.organisme = service.organisme
%br
- horaires = "Horaires : #{formatted_horaires(service.horaires)}" - if service.horaires.present?
= simple_format(horaires) = render SimpleFormatComponent.new("Horaires : #{formatted_horaires(service.horaires)}")
%p %p
= mail_to service.email, = mail_to service.email,
service.email, service.email,

View file

@ -19,9 +19,9 @@
= link_to service.telephone_url, class: 'fr-footer__top-link' do = link_to service.telephone_url, class: 'fr-footer__top-link' do
%p %p
= I18n.t('users.procedure_footer.contact.phone.link', service_telephone: service.telephone) = I18n.t('users.procedure_footer.contact.phone.link', service_telephone: service.telephone)
- if service.horaires.present? - if service.horaires.present?
%p %p
= horaires = horaires
%li %li
= link_to I18n.t('users.procedure_footer.contact.stats.link'), statistiques_path(procedure.path), class: 'fr-footer__top-link', rel: 'noopener' = link_to I18n.t('users.procedure_footer.contact.stats.link'), statistiques_path(procedure.path), class: 'fr-footer__top-link', rel: 'noopener'