diff options
| author | jpl | 2017-02-20 11:17:40 +0100 |
|---|---|---|
| committer | jpl | 2017-02-20 11:17:40 +0100 |
| commit | 5a5187ae565ecc2869de21621bc86d4bdf1e7425 (patch) | |
| tree | 10fae4ced84169a2f4fa34087b5c7247a15d1b91 /app/helpers/stop_areas_helper.rb | |
| parent | 2467d77216b7866cd3dd529489538247fa265bd4 (diff) | |
| download | chouette-core-5a5187ae565ecc2869de21621bc86d4bdf1e7425.tar.bz2 | |
Refs #2609: updating stop_areas#show (from sync)
Diffstat (limited to 'app/helpers/stop_areas_helper.rb')
| -rw-r--r-- | app/helpers/stop_areas_helper.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/app/helpers/stop_areas_helper.rb b/app/helpers/stop_areas_helper.rb index 65e82e6f0..2188a272d 100644 --- a/app/helpers/stop_areas_helper.rb +++ b/app/helpers/stop_areas_helper.rb @@ -62,17 +62,13 @@ module StopAreasHelper def geo_data(sa, sar) if sa.long_lat_type.nil? - content_tag :span, I18n.t('stop_areas.show.no_geographic_data') + content_tag :span, '-' else if !sa.projection.nil? - p = content_tag :span, "#{sa.human_attribute_name(:projection)} : #{sar.projection_type_label}" - px = content_tag :span, "#{sa.human_attribute_name(:projection_x)} : #{sa.projection_x}" - py = content_tag :span, "#{sa.human_attribute_name(:projection_y)} : #{sa.projection_y}" + content_tag :span, "#{sa.projection_x}, #{sa.projection_y}" elsif !sa.long_lat_type.nil? - lonlat = content_tag :span, "#{sa.human_attribute_name(:long_lat_type)} : #{sa.long_lat_type}" - lon = content_tag :span, "#{sa.human_attribute_name(:longitude)} : #{sa.longitude}" - lat = content_tag :span, "#{sa.human_attribute_name(:latitude)} : #{sa.latitude}" + content_tag :span, "#{sa.long_lat_type} : #{sa.longitude}, #{sa.latitude}" end end end |
