aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/vehicle_journeys/index.html.slim6
-rw-r--r--spec/views/vehicle_journeys/index.html.slim_spec.rb2
2 files changed, 5 insertions, 3 deletions
diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim
index f9df1f30c..4ad9d524d 100644
--- a/app/views/vehicle_journeys/index.html.slim
+++ b/app/views/vehicle_journeys/index.html.slim
@@ -1,8 +1,10 @@
- breadcrumb :vehicle_journeys, @referential, @route
- content_for :page_header_title, t('vehicle_journeys.index.title', route: @route.name)
- if @route.opposite_route.present?
- - content_for :page_header_actions do
- = link_to(t('routes.actions.opposite_route_timetable'), [@referential, @route.line, @route.opposite_route, :vehicle_journeys], class: 'btn btn-default')
+ - content_for :page_header_content do
+ .row.mb-sm
+ .col-lg-12.text-right
+ = link_to(t('routes.actions.opposite_route_timetable'), [@referential, @route.line, @route.opposite_route, :vehicle_journeys], class: 'btn btn-primary')
.page_content
diff --git a/spec/views/vehicle_journeys/index.html.slim_spec.rb b/spec/views/vehicle_journeys/index.html.slim_spec.rb
index 07fc2419d..7f0a9c5aa 100644
--- a/spec/views/vehicle_journeys/index.html.slim_spec.rb
+++ b/spec/views/vehicle_journeys/index.html.slim_spec.rb
@@ -24,7 +24,7 @@ describe "/vehicle_journeys/index", :type => :view do
href = view.referential_line_route_vehicle_journeys_path(referential, line, route.opposite_route)
oppposite_button_selector = "a[href=\"#{href}\"]"
- expect(view.content_for(:page_header_actions)).to have_selector oppposite_button_selector
+ expect(view.content_for(:page_header_content)).to have_selector oppposite_button_selector
end
end
end