aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/breadcrumb_helper.rb
diff options
context:
space:
mode:
authorVlatka Pavisic2016-12-29 17:20:06 +0100
committerVlatka Pavisic2016-12-29 17:20:06 +0100
commitadfb4aebfab39b5a7a4b9a70ac62f639567aead6 (patch)
tree3ef864b0f48e946d04d1c79947a2e8efe1f96853 /app/helpers/breadcrumb_helper.rb
parent08b68565fb7f82bc7754bd62ad3f72efca6ea62d (diff)
downloadchouette-core-adfb4aebfab39b5a7a4b9a70ac62f639567aead6.tar.bz2
Refs #2262 Refs #2263 Refs #2264 Refs #2265 : Calendars
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
-rw-r--r--app/helpers/breadcrumb_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb
index dc68bd897..d764ad60f 100644
--- a/app/helpers/breadcrumb_helper.rb
+++ b/app/helpers/breadcrumb_helper.rb
@@ -38,6 +38,8 @@ module BreadcrumbHelper
timeband_breadcrumb action
when 'Chouette::RoutingConstraintZone'
routing_constraint_zone_breadcrumb action
+ when 'Calendar'
+ calendar_breadcrumb action
when "StopAreaCopy"
stop_area_copy_breadcrumb action
when "Import"
@@ -70,6 +72,11 @@ module BreadcrumbHelper
end
end
+ def calendar_breadcrumb(action)
+ add_breadcrumb Calendar.model_name.human.pluralize
+ add_breadcrumb @calendar.name if %i(show edit).include? action
+ end
+
def workbench_breadcrumb(action)
add_breadcrumb I18n.t("breadcrumbs.referentials"), referentials_path
add_breadcrumb breadcrumb_label(@workbench), workbench_path(@workbench), :title => breadcrumb_tooltip(@workbench)