Merge pull request #4035 from tchak/no-crash-when-no-service
Avoid crashing when demarche have no service
This commit is contained in:
commit
eaf7261e82
1 changed files with 12 additions and 11 deletions
|
@ -1,14 +1,15 @@
|
||||||
.card.feedback
|
.card.feedback
|
||||||
.card-title
|
.card-title
|
||||||
La messagerie est désormais désactivée.
|
La messagerie est désormais désactivée.
|
||||||
%p
|
- if service.present?
|
||||||
Pour poser une question sur ce dossier, contactez :
|
%p
|
||||||
%p
|
Pour poser une question sur ce dossier, contactez :
|
||||||
= service.nom
|
%p
|
||||||
%br
|
= service.nom
|
||||||
= service.organisme
|
%br
|
||||||
%br
|
= service.organisme
|
||||||
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
|
%br
|
||||||
= simple_format(horaires)
|
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
|
||||||
%p
|
= simple_format(horaires)
|
||||||
= link_to service.email, "mailto:#{service.email}"
|
%p
|
||||||
|
= link_to service.email, "mailto:#{service.email}"
|
||||||
|
|
Loading…
Reference in a new issue