aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/stop_areas/show.html.slim
diff options
context:
space:
mode:
authorAlban Peignier2017-12-20 20:52:58 +0100
committerAlban Peignier2017-12-20 22:24:46 +0100
commitffa7c137f0d06f37f67561f09472b304efa90069 (patch)
treeaabf81f1bf792b58641ed1a126b9204e26709630 /app/views/stop_areas/show.html.slim
parentb012deb3ec8626d2d114dd725cfaeed363e08e25 (diff)
downloadchouette-core-ffa7c137f0d06f37f67561f09472b304efa90069.tar.bz2
Add StopArea#waiting_time with support in stop_areas#index/show. Refs #5351
Diffstat (limited to 'app/views/stop_areas/show.html.slim')
-rw-r--r--app/views/stop_areas/show.html.slim11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/stop_areas/show.html.slim b/app/views/stop_areas/show.html.slim
index 1b1209a68..0b79f5736 100644
--- a/app/views/stop_areas/show.html.slim
+++ b/app/views/stop_areas/show.html.slim
@@ -15,12 +15,15 @@
.container-fluid
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
- = definition_list t('metadatas'),
- { t('id_reflex') => @stop_area.get_objectid.short_id,
+ - attributes = { t('id_reflex') => @stop_area.get_objectid.short_id,
@stop_area.human_attribute_name(:stop_area_type) => Chouette::AreaType.find(@stop_area.area_type).try(:label),
@stop_area.human_attribute_name(:registration_number) => @stop_area.registration_number,
- 'Coordonnées' => geo_data(@stop_area, @stop_area_referential),
+ }
+ - attributes.merge!(@stop_area.human_attribute_name(:waiting_time) => @stop_area.waiting_time_text)
+ - attributes.merge!({ "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'),
- @stop_area.human_attribute_name(:comment) => @stop_area.try(:comment) }
+ @stop_area.human_attribute_name(:comment) => @stop_area.try(:comment),
+ })
+ = definition_list t('metadatas'), attributes