aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/routes
diff options
context:
space:
mode:
authorThomas Haddad2017-05-11 11:46:31 +0200
committerThomas Haddad2017-05-11 11:47:00 +0200
commit2ebab18517c6f264f473d43fea434b1a670153da (patch)
tree36780083b4047835058a7b4138f68a7dad726476 /app/views/routes
parented7b59137b4d9ad9370f9b300a1547d43c27a75c (diff)
downloadchouette-core-2ebab18517c6f264f473d43fea434b1a670153da.tar.bz2
Disable turbolinks for reactux rendered views
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com> Signed-off-by: Jean Pual Lescouzères <jpl-laboulette@af83.com>
Diffstat (limited to 'app/views/routes')
-rw-r--r--app/views/routes/show.html.slim4
1 files 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'