aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-04-24 17:11:03 +0200
committerjpl2017-04-24 17:11:03 +0200
commitf1c040fcf0ac4f57878172aece4e69dad862d62b (patch)
tree80ebdb45e80a7183dbcb355f09eb118ca1edbaae
parent0dc868e6f4699be84c1365df5c34f9c580e08d31 (diff)
downloadchouette-core-f1c040fcf0ac4f57878172aece4e69dad862d62b.tar.bz2
Refs #3169: adding comment data to stop_areas#show
-rw-r--r--app/views/stop_areas/show.html.slim3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/stop_areas/show.html.slim b/app/views/stop_areas/show.html.slim
index 58a2dbde3..bdf7b61a5 100644
--- a/app/views/stop_areas/show.html.slim
+++ b/app/views/stop_areas/show.html.slim
@@ -26,4 +26,5 @@
'Coordonnées' => geo_data(@stop_area, @stop_area_referential),
@stop_area.human_attribute_name(:zip_code) => @stop_area.zip_code,
@stop_area.human_attribute_name(:city_name) => @stop_area.city_name,
- 'Etat' => (@stop_area.deleted_at ? 'Supprimé' : 'Actif') }
+ 'Etat' => (@stop_area.deleted_at ? 'Supprimé' : 'Actif'),
+ @stop_area.human_attribute_name(:comment) => @stop_area.try(:comment) }