aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/referential_lines_controller.rb2
-rw-r--r--app/controllers/routing_constraint_zones_controller.rb4
-rw-r--r--app/views/line_footnotes/show.html.slim3
-rw-r--r--app/views/referential_lines/edit.html.slim3
-rw-r--r--app/views/referential_lines/show.html.slim1
-rw-r--r--app/views/routing_constraint_zones/edit.html.slim1
-rw-r--r--app/views/routing_constraint_zones/index.html.slim1
-rw-r--r--app/views/routing_constraint_zones/new.html.slim1
-rw-r--r--app/views/routing_constraint_zones/show.html.slim1
-rw-r--r--config/breadcrumbs.rb21
10 files changed, 30 insertions, 8 deletions
diff --git a/app/controllers/referential_lines_controller.rb b/app/controllers/referential_lines_controller.rb
index ec0bbbb18..b9f8c0050 100644
--- a/app/controllers/referential_lines_controller.rb
+++ b/app/controllers/referential_lines_controller.rb
@@ -44,8 +44,6 @@ class ReferentialLinesController < ChouetteController
current_organisation: current_organisation
}
)
-
- build_breadcrumb :show
end
end
diff --git a/app/controllers/routing_constraint_zones_controller.rb b/app/controllers/routing_constraint_zones_controller.rb
index 78cd0e209..6c3da5980 100644
--- a/app/controllers/routing_constraint_zones_controller.rb
+++ b/app/controllers/routing_constraint_zones_controller.rb
@@ -20,8 +20,6 @@ class RoutingConstraintZonesController < ChouetteController
line: parent
}
)
-
- build_breadcrumb :index
end
end
@@ -31,8 +29,6 @@ class RoutingConstraintZonesController < ChouetteController
referential: referential,
line: parent
})
-
- build_breadcrumb :show
end
end
diff --git a/app/views/line_footnotes/show.html.slim b/app/views/line_footnotes/show.html.slim
index 8138c1383..0ed1d2958 100644
--- a/app/views/line_footnotes/show.html.slim
+++ b/app/views/line_footnotes/show.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :line_footnotes, @referential, @line
/ PageHeader
= pageheader 'ligne',
"Notes sur la ligne #{@line.name}",
@@ -22,4 +23,4 @@
- else
= replacement_msg 'Aucune note ne correspond à votre recherche'
-
+
diff --git a/app/views/referential_lines/edit.html.slim b/app/views/referential_lines/edit.html.slim
index 0036d023b..8c51715ba 100644
--- a/app/views/referential_lines/edit.html.slim
+++ b/app/views/referential_lines/edit.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :referential_line, @line, @referential
= title_tag t('lines.edit.title', line: @line.name)
-= render 'form' \ No newline at end of file
+= render 'form'
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim
index df3c285ee..0ef548e89 100644
--- a/app/views/referential_lines/show.html.slim
+++ b/app/views/referential_lines/show.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :referential_line, @referential, @line
/ PageHeader
= pageheader 'ligne',
t('lines.index.line', line: @line.name),
diff --git a/app/views/routing_constraint_zones/edit.html.slim b/app/views/routing_constraint_zones/edit.html.slim
index 2c23344df..c9b9b0c41 100644
--- a/app/views/routing_constraint_zones/edit.html.slim
+++ b/app/views/routing_constraint_zones/edit.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :routing_constraint_zone, @referential, @line, @routing_constraint_zone
/ PageHeader
= pageheader 'itl',
t('.title', routing_constraint_zone: @routing_constraint_zone.name),
diff --git a/app/views/routing_constraint_zones/index.html.slim b/app/views/routing_constraint_zones/index.html.slim
index 4e2534b6a..ddad7723e 100644
--- a/app/views/routing_constraint_zones/index.html.slim
+++ b/app/views/routing_constraint_zones/index.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :routing_constraint_zones, @referential, @line
/ PageHeader
= pageheader 'itl',
t('routing_constraint_zones.index.title'),
diff --git a/app/views/routing_constraint_zones/new.html.slim b/app/views/routing_constraint_zones/new.html.slim
index 1ed65335f..d15de13a4 100644
--- a/app/views/routing_constraint_zones/new.html.slim
+++ b/app/views/routing_constraint_zones/new.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :routing_constraint_zones, @referential, @line
/ PageHeader
= pageheader 'itl',
t('.title')
diff --git a/app/views/routing_constraint_zones/show.html.slim b/app/views/routing_constraint_zones/show.html.slim
index dbd8464a0..d0c0619c3 100644
--- a/app/views/routing_constraint_zones/show.html.slim
+++ b/app/views/routing_constraint_zones/show.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :routing_constraint_zone, @referential, @line, @routing_constraint_zone
/ PageHeader
= pageheader 'itl',
@routing_constraint_zone.name,
diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb
index 829c31714..f437af456 100644
--- a/config/breadcrumbs.rb
+++ b/config/breadcrumbs.rb
@@ -115,6 +115,27 @@ crumb :calendar do |calendar|
link calendar.name, calendar_path(calendar)
parent :calendars
end
+
+crumb :referential_line do |referential, line|
+ link line.name, referential_line_path(referential, line)
+ parent :referential, referential
+end
+
+crumb :line_footnotes do |referential, line|
+ link line.name, referential_line_footnotes_path(referential, line)
+ parent :referential_line, line, referential
+end
+
+crumb :routing_constraint_zones do |referential, line|
+ link I18n.t('routing_constraint_zones.index.title'), referential_line_routing_constraint_zones_path(referential, line)
+ parent :referential_line, line, referential
+end
+
+crumb :routing_constraint_zone do |referential, line, routing_constraint_zone|
+ link routing_constraint_zone.name, referential_line_routing_constraint_zone_path(referential, line, routing_constraint_zone)
+ parent :routing_constraint_zones, line, referential
+end
+
# crumb :compliance_controls do|compliance_control_sets|
# link
# parent :compliance_control_sets, compliance_control_sets