From 2ebab18517c6f264f473d43fea434b1a670153da Mon Sep 17 00:00:00 2001 From: Thomas Haddad Date: Thu, 11 May 2017 11:46:31 +0200 Subject: Disable turbolinks for reactux rendered views Signed-off-by: Thomas Shawarma Haddad Signed-off-by: Jean Pual Lescouzères --- app/views/routes/show.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim index bc69e35e9..7ab628690 100644 --- a/app/views/routes/show.html.slim +++ b/app/views/routes/show.html.slim @@ -3,12 +3,12 @@ @route.name, 'Lorem ipsum dolor sit amet', t('last_update', time: l(@route.updated_at, format: :short)), - (policy(@route).edit? ? link_to(t('actions.edit'), edit_referential_line_route_path(@referential, @line, @route), class: 'btn btn-default') : '') do + (policy(@route).edit? ? link_to(t('actions.edit'), edit_referential_line_route_path(@referential, @line, @route), data: {turbolinks: false}, class: 'btn btn-default') : '') do / Below is secundary actions & optional contents (filters, ...) .row.mb-sm .col-lg-12.text-right - = link_to t('journey_patterns.index.title'), [@referential, @line, @route, :journey_patterns_collection], class: 'btn btn-primary' + = link_to t('journey_patterns.index.title'), [@referential, @line, @route, :journey_patterns_collection], data: {turbolinks: false}, class: 'btn btn-primary' - if @route.journey_patterns.present? = link_to t('vehicle_journeys.actions.index'), [@referential, @line, @route, :vehicle_journeys], data: {turbolinks: false}, class: 'btn btn-primary' -- cgit v1.2.3