diff options
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
| -rw-r--r-- | app/helpers/breadcrumb_helper.rb | 7 | 
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) | 
