aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2017-10-20 16:45:21 +0200
committerXinhui2017-10-20 16:45:21 +0200
commit2242858aa56a818f936a905b5b9e5f90926b725c (patch)
treeeb1ad2569f58ca38a8161fd74a21da1da54ef1b3 /app
parent3d1a9601cac27dfb6b74c5f53e9042c246296928 (diff)
downloadchouette-core-2242858aa56a818f936a905b5b9e5f90926b725c.tar.bz2
Breadcrumb for vehicle_journeys
Diffstat (limited to 'app')
-rw-r--r--app/controllers/vehicle_journeys_controller.rb1
-rw-r--r--app/views/vehicle_journeys/edit.html.slim3
-rw-r--r--app/views/vehicle_journeys/index.html.slim1
3 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb
index 70cca15ed..050f2f219 100644
--- a/app/controllers/vehicle_journeys_controller.rb
+++ b/app/controllers/vehicle_journeys_controller.rb
@@ -76,7 +76,6 @@ class VehicleJourneysController < ChouetteController
if collection.out_of_bounds?
redirect_to params.merge(:page => 1)
end
- build_breadcrumb :index
end
end
diff --git a/app/views/vehicle_journeys/edit.html.slim b/app/views/vehicle_journeys/edit.html.slim
index 8b3dbcf51..52ac97277 100644
--- a/app/views/vehicle_journeys/edit.html.slim
+++ b/app/views/vehicle_journeys/edit.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb
= title_tag edit_vehicle_title(@vehicle_journey)
-== render 'form', vehicle_journey: @vehicle_journey, form_url: referential_line_route_vehicle_journey_path(@referential, @line, @route, @vehicle_journey) \ No newline at end of file
+== render 'form', vehicle_journey: @vehicle_journey, form_url: referential_line_route_vehicle_journey_path(@referential, @line, @route, @vehicle_journey)
diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim
index f88afc398..2046ecca6 100644
--- a/app/views/vehicle_journeys/index.html.slim
+++ b/app/views/vehicle_journeys/index.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :vehicle_journeys, @referential, @route
/ PageHeader
= pageheader 'horaires-des-courses',
t('vehicle_journeys.index.title', route: @route.name ),