Avoid crashing when demarche have no service
This commit is contained in:
parent
87902a05d9
commit
05987223db
1 changed files with 12 additions and 11 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue