diff options
| author | Michel Etienne | 2014-09-19 14:56:09 +0200 | 
|---|---|---|
| committer | Michel Etienne | 2014-09-19 14:56:09 +0200 | 
| commit | 4a278cad118f7110cc8304da6288e4e6b6047181 (patch) | |
| tree | 1fd49d6c6d0ef07da6f2cfd60d7304640761e268 /app/controllers/journey_patterns_controller.rb | |
| parent | bf6bea71846d2ab079d592086251c6af426c80d9 (diff) | |
| download | chouette-core-4a278cad118f7110cc8304da6288e4e6b6047181.tar.bz2 | |
refactor breadcrumbs
Diffstat (limited to 'app/controllers/journey_patterns_controller.rb')
| -rw-r--r-- | app/controllers/journey_patterns_controller.rb | 21 | 
1 files changed, 1 insertions, 20 deletions
| diff --git a/app/controllers/journey_patterns_controller.rb b/app/controllers/journey_patterns_controller.rb index 084f34b03..26c54e9c6 100644 --- a/app/controllers/journey_patterns_controller.rb +++ b/app/controllers/journey_patterns_controller.rb @@ -28,26 +28,7 @@ class JourneyPatternsController < ChouetteController      @map = JourneyPatternMap.new(journey_pattern).with_helpers(self)      @stop_points = journey_pattern.stop_points.paginate(:page => params[:page])      show! do -      add_breadcrumb Referential.human_attribute_name("lines"), referential_lines_path(@referential) -      add_breadcrumb @line.name, referential_line_path(@referential, @line) -      add_breadcrumb @route.name, referential_line_route_path(@referential, @line, @route) -    end -  end - -  def new -    new! do -      add_breadcrumb Referential.human_attribute_name("lines"), referential_lines_path(@referential) -      add_breadcrumb @line.name, referential_line_path(@referential, @line) -      add_breadcrumb @route.name, referential_line_route_path(@referential, @line, @route) -    end -  end - -  def edit -    edit! do -      add_breadcrumb Referential.human_attribute_name("lines"), referential_lines_path(@referential) -      add_breadcrumb @line.name, referential_line_path(@referential, @line) -      add_breadcrumb @route.name, referential_line_route_path(@referential, @line, @route) -      add_breadcrumb @journey_pattern.name, referential_line_route_journey_pattern_path(@referential, @line, @route, @journey_pattern) +      build_breadcrumb :show      end    end | 
