diff options
| author | vlatka pavisic | 2016-12-12 15:49:52 +0100 | 
|---|---|---|
| committer | vlatka pavisic | 2016-12-12 15:49:58 +0100 | 
| commit | 2d4e6b45b0295e8c01deaebb04f8be009a7f9d87 (patch) | |
| tree | efb5139d08a29e9e0c9017b35d34ca8aa611f34d /app/helpers/breadcrumb_helper.rb | |
| parent | 73ab4dfc33dcf6b32198ae902fea3f8504821dea (diff) | |
| download | chouette-core-2d4e6b45b0295e8c01deaebb04f8be009a7f9d87.tar.bz2 | |
Refs #1955 : RoutingConstraintZone
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
| -rw-r--r-- | app/helpers/breadcrumb_helper.rb | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb index 9d503fe2e..dc68bd897 100644 --- a/app/helpers/breadcrumb_helper.rb +++ b/app/helpers/breadcrumb_helper.rb @@ -36,6 +36,8 @@ module BreadcrumbHelper        route_section_breadcrumb action      when "Chouette::Timeband"        timeband_breadcrumb action +    when 'Chouette::RoutingConstraintZone' +      routing_constraint_zone_breadcrumb action      when "StopAreaCopy"        stop_area_copy_breadcrumb action      when "Import" @@ -159,6 +161,12 @@ module BreadcrumbHelper      add_breadcrumb breadcrumb_label(@route), referential_line_route_path(@referential, @line,@route),:title => breadcrumb_tooltip(@route) if action == :edit    end +  def routing_constraint_zone_breadcrumb(action) +    line_breadcrumb :edit +    add_breadcrumb Chouette::RoutingConstraintZone.model_name.human.pluralize(:fr), referential_line_routing_constraint_zones_path(@referential, @line) unless action == :index +    add_breadcrumb breadcrumb_label(@routing_constraint_zone), referential_line_routing_constraint_zone_path(@referential, @line, @routing_constraint_zone), title: breadcrumb_tooltip(@routing_constraint_zone) if %i(show edit).include? action +  end +    def journey_pattern_breadcrumb(action)      route_breadcrumb :edit      add_breadcrumb breadcrumb_label(@journey_pattern), referential_line_route_journey_pattern_path(@referential, @line,@route,@journey_pattern),:title => breadcrumb_tooltip(@journey_pattern) if action == :edit | 
