diff options
| author | Michel Etienne | 2014-09-11 13:32:55 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-09-11 13:32:55 +0200 |
| commit | f7c74269723c8920044def1617516f53a5393eb1 (patch) | |
| tree | 81fdfa5a5f0051e7dc0fdd632a2ba0582b466c08 /app/controllers/lines_controller.rb | |
| parent | cd591d22126430fd9c1a132862067ce2528a917f (diff) | |
| download | chouette-core-f7c74269723c8920044def1617516f53a5393eb1.tar.bz2 | |
insert breadcrumb
Diffstat (limited to 'app/controllers/lines_controller.rb')
| -rw-r--r-- | app/controllers/lines_controller.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index 3721a957d..2ff732721 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -22,9 +22,23 @@ class LinesController < ChouetteController @map = LineMap.new(resource).with_helpers(self) @routes = @line.routes @group_of_lines = @line.group_of_lines - show! + show! do + add_breadcrumb Referential.human_attribute_name("lines"), referential_lines_path(@referential) + end end + def new + new! do + add_breadcrumb Referential.human_attribute_name("lines"), referential_lines_path(@referential) + 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) + end + end # overwrite inherited resources to use delete instead of destroy # foreign keys will propagate deletion) def destroy_resource(object) |
