aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/lines_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/lines_controller.rb')
-rw-r--r--app/controllers/lines_controller.rb16
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)