From 4eadd762a0005e3e452aa757495e02dc244db3dc Mon Sep 17 00:00:00 2001 From: Zog Date: Thu, 21 Dec 2017 11:14:23 +0100 Subject: Refs #5355 @0.5h; Add opposite route button on timetables --- app/views/vehicle_journeys/index.html.slim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim index 52c1a9728..f9df1f30c 100644 --- a/app/views/vehicle_journeys/index.html.slim +++ b/app/views/vehicle_journeys/index.html.slim @@ -1,5 +1,9 @@ - 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') + .page_content .container-fluid -- cgit v1.2.3