aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/stop_areas_helper.rb
diff options
context:
space:
mode:
authorMichel Etienne2012-11-13 16:18:13 +0100
committerMichel Etienne2012-11-13 16:18:13 +0100
commiteeaf81e645de6f073b84b22b19e04ac63024399e (patch)
tree5c0664cc51d2ad7d42ec8ff3322d540ac2413972 /app/helpers/stop_areas_helper.rb
parent0c9781ac6c9927c4631826c2319c0c14436587d6 (diff)
downloadchouette-core-eeaf81e645de6f073b84b22b19e04ac63024399e.tar.bz2
add some features on maps
Diffstat (limited to 'app/helpers/stop_areas_helper.rb')
-rw-r--r--app/helpers/stop_areas_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/stop_areas_helper.rb b/app/helpers/stop_areas_helper.rb
index df598b83f..4a2f3f9a4 100644
--- a/app/helpers/stop_areas_helper.rb
+++ b/app/helpers/stop_areas_helper.rb
@@ -3,7 +3,11 @@ module StopAreasHelper
return t(".genealogical_routing") if @stop_area.stop_area_type == 'itl'
t(".genealogical")
end
-
+
+ def show_map?
+ manage_itl || @stop_area.projection_type != nil || @stop_area.long_lat_type != nil
+ end
+
def manage_access_points
@stop_area.stop_area_type == 'stop_place' || @stop_area.stop_area_type == 'commercial_stop_point'
end