aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2017-10-19 17:00:17 +0200
committerXinhui2017-10-19 17:00:58 +0200
commit5d9793a52fcdf3009e247eeaace4cdd31f33b45a (patch)
tree9573a63b3270028a29873d9b08c472da6b23bccd /app
parenta8f4fbe9d16984fbdf2cd769b7abe4f442b56688 (diff)
downloadchouette-core-5d9793a52fcdf3009e247eeaace4cdd31f33b45a.tar.bz2
Breadcrumb for lines - networks
Diffstat (limited to 'app')
-rw-r--r--app/controllers/lines_controller.rb3
-rw-r--r--app/controllers/networks_controller.rb4
-rw-r--r--app/views/lines/index.html.slim1
-rw-r--r--app/views/lines/new.html.slim4
-rw-r--r--app/views/lines/show.html.slim1
-rw-r--r--app/views/networks/edit.html.slim3
-rw-r--r--app/views/networks/index.html.slim1
-rw-r--r--app/views/networks/new.html.slim3
-rw-r--r--app/views/networks/show.html.slim1
9 files changed, 11 insertions, 10 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb
index 4b6448ce8..544d56e64 100644
--- a/app/controllers/lines_controller.rb
+++ b/app/controllers/lines_controller.rb
@@ -26,7 +26,6 @@ class LinesController < BreadcrumbController
if collection.out_of_bounds?
redirect_to params.merge(:page => 1)
end
- build_breadcrumb :index
}
end
end
@@ -38,8 +37,6 @@ class LinesController < BreadcrumbController
line_referential: @line_referential,
current_organisation: current_organisation
})
-
- build_breadcrumb :show
end
end
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb
index 5dae1ba3f..363e56829 100644
--- a/app/controllers/networks_controller.rb
+++ b/app/controllers/networks_controller.rb
@@ -17,8 +17,6 @@ class NetworksController < BreadcrumbController
@network = @network.decorate(context: {
line_referential: line_referential
})
-
- build_breadcrumb :show
end
end
@@ -43,8 +41,6 @@ class NetworksController < BreadcrumbController
format.js {
@networks = decorate_networks(@networks)
}
-
- build_breadcrumb :index
end
end
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim
index 87c3a69e7..7e3e1cc85 100644
--- a/app/views/lines/index.html.slim
+++ b/app/views/lines/index.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :lines, @line_referential
/ PageHeader
= pageheader 'ligne',
t('lines.index.title'),
diff --git a/app/views/lines/new.html.slim b/app/views/lines/new.html.slim
index 56da24d7c..f09a4b4aa 100644
--- a/app/views/lines/new.html.slim
+++ b/app/views/lines/new.html.slim
@@ -1,3 +1,5 @@
+- breadcrumb :lines, @line_referential
+
= title_tag t('lines.new.title')
-= render 'form' \ No newline at end of file
+= render 'form'
diff --git a/app/views/lines/show.html.slim b/app/views/lines/show.html.slim
index b16b6472a..d8f236ecc 100644
--- a/app/views/lines/show.html.slim
+++ b/app/views/lines/show.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :line, @line
/ PageHeader
= pageheader 'ligne',
@line.name,
diff --git a/app/views/networks/edit.html.slim b/app/views/networks/edit.html.slim
index d4e088937..2d511e15d 100644
--- a/app/views/networks/edit.html.slim
+++ b/app/views/networks/edit.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :network, @network
= title_tag t('networks.edit.title', network: @network.name)
-= render 'form' \ No newline at end of file
+= render 'form'
diff --git a/app/views/networks/index.html.slim b/app/views/networks/index.html.slim
index 235bdebda..e498ea35f 100644
--- a/app/views/networks/index.html.slim
+++ b/app/views/networks/index.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :networks, @line_referential
/ PageHeader
= pageheader 'reseau',
t('networks.index.title'),
diff --git a/app/views/networks/new.html.slim b/app/views/networks/new.html.slim
index 7071ded33..cf04ab03f 100644
--- a/app/views/networks/new.html.slim
+++ b/app/views/networks/new.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :networks, @line_referential
= title_tag t('networks.new.title')
-= render 'form' \ No newline at end of file
+= render 'form'
diff --git a/app/views/networks/show.html.slim b/app/views/networks/show.html.slim
index d237351c4..9b2a0dbf8 100644
--- a/app/views/networks/show.html.slim
+++ b/app/views/networks/show.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :network, @network
/ PageHeader
= pageheader 'reseau',
@network.name,