Merge pull request #4035 from tchak/no-crash-when-no-service

Avoid crashing when demarche have no service
This commit is contained in:
Paul Chavard 2019-07-03 17:27:36 +02:00 committed by GitHub
commit eaf7261e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,15 @@
.card.feedback
.card-title
La messagerie est désormais désactivée.
%p
Pour poser une question sur ce dossier, contactez :
%p
= service.nom
%br
= service.organisme
%br
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
= simple_format(horaires)
%p
= link_to service.email, "mailto:#{service.email}"
- if service.present?
%p
Pour poser une question sur ce dossier, contactez :
%p
= service.nom
%br
= service.organisme
%br
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
= simple_format(horaires)
%p
= link_to service.email, "mailto:#{service.email}"