aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/networks_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/networks_controller.rb')
-rw-r--r--app/controllers/networks_controller.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb
index 04d565812..f99ff494b 100644
--- a/app/controllers/networks_controller.rb
+++ b/app/controllers/networks_controller.rb
@@ -10,7 +10,9 @@ class NetworksController < ChouetteController
def show
@map = NetworkMap.new(resource).with_helpers(self)
- show!
+ show! do
+ add_breadcrumb Referential.human_attribute_name("networks"), referential_networks_path(@referential)
+ end
end
def index
@@ -23,6 +25,19 @@ class NetworksController < ChouetteController
end
end
+ def new
+ new! do
+ add_breadcrumb Referential.human_attribute_name("networks"), referential_networks_path(@referential)
+ end
+ end
+
+ def edit
+ edit! do
+ add_breadcrumb Referential.human_attribute_name("networks"), referential_networks_path(@referential)
+ add_breadcrumb @network.name, referential_line_path(@referential, @network)
+ end
+ end
+
protected
def collection