aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a74fa15da..88ff3fecf 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,5 +1,9 @@
module ApplicationHelper
-
+
+ def stop_area_picture_url(stop_area)
+ image_path("map/#{stop_area.area_type.underscore}.png")
+ end
+
def selected_referential?
@referential.present? and not @referential.new_record?
end
@@ -56,6 +60,8 @@ module ApplicationHelper
"exports"
when path.include?("/compliance_check_tasks")
"validations"
+ when path.include?("/referentials")
+ "dataspaces"
else
""
end