diff options
Diffstat (limited to 'app/controllers/stop_areas_controller.rb')
| -rw-r--r-- | app/controllers/stop_areas_controller.rb | 20 | 
1 files changed, 18 insertions, 2 deletions
| diff --git a/app/controllers/stop_areas_controller.rb b/app/controllers/stop_areas_controller.rb index ab4900ef1..ca72c362b 100644 --- a/app/controllers/stop_areas_controller.rb +++ b/app/controllers/stop_areas_controller.rb @@ -19,27 +19,37 @@ class StopAreasController < ChouetteController    def select_parent      @stop_area = stop_area      @parent = stop_area.parent +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +      add_breadcrumb @stop_area.name, referential_stop_area_path(@referential, @stop_area)    end    def add_children      @stop_area = stop_area      @children = stop_area.children +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +      add_breadcrumb @stop_area.name, referential_stop_area_path(@referential, @stop_area)    end    def add_routing_lines      @stop_area = stop_area      @lines = stop_area.routing_lines +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +      add_breadcrumb @stop_area.name, referential_stop_area_path(@referential, @stop_area)    end    def add_routing_stops      @stop_area = stop_area      @stops = stop_area.routing_stops +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +      add_breadcrumb @stop_area.name, referential_stop_area_path(@referential, @stop_area)    end    def access_links      @stop_area = stop_area      @generic_access_links = stop_area.generic_access_link_matrix      @detail_access_links = stop_area.detail_access_link_matrix +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +      add_breadcrumb @stop_area.name, referential_stop_area_path(@referential, @stop_area)    end    def index @@ -57,7 +67,9 @@ class StopAreasController < ChouetteController    def new      @map = StopAreaMap.new( Chouette::StopArea.new).with_helpers(self)      @map.editable = true -    new! +    new! do +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +    end    end    def show @@ -70,6 +82,7 @@ class StopAreasController < ChouetteController          }        end +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential)      end    end @@ -77,7 +90,10 @@ class StopAreasController < ChouetteController      stop_area.position ||= stop_area.default_position      map.editable = true -    edit! +    edit! do +      add_breadcrumb Referential.human_attribute_name("stop_areas"), referential_stop_areas_path(@referential) +      add_breadcrumb @stop_area.name, referential_stop_area_path(@referential, @stop_area) +    end    end    def default_geometry | 
