aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorAlban Peignier2017-12-21 21:00:33 +0100
committerGitHub2017-12-21 21:00:33 +0100
commite722b3de7928eabba8ecc3f66b9275bfd0438904 (patch)
tree08bbecfd49c0625e9fb11ea39e0a106e95c775bf /app
parent93434ece5f7f5118f8342ff1bbe845458009f3eb (diff)
parent780b7e4711e983e8f99e71bacc7eaf6973b214ce (diff)
downloadchouette-core-e722b3de7928eabba8ecc3f66b9275bfd0438904.tar.bz2
Merge pull request #172 from af83/5355-add-button-to-opposite-itinerary-timetable
Add opposite route button on timetables. Refs #5355
Diffstat (limited to 'app')
-rw-r--r--app/views/vehicle_journeys/index.html.slim6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim
index 52c1a9728..4ad9d524d 100644
--- a/app/views/vehicle_journeys/index.html.slim
+++ b/app/views/vehicle_journeys/index.html.slim
@@ -1,5 +1,11 @@
- 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_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
.container-fluid