Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-08-10 21:44:39 +0300
committerStan Hu <stanhu@gmail.com>2015-08-10 21:44:39 +0300
commite6ef058289f3044964f7538043ba50d9e9fcafe3 (patch)
treec77508384877d4416c78a7292d0ef84b32cf1b5d
parent01af2c98b64149cf8ba906b4bcf7650b7abdd446 (diff)
Disable turbolinks when linking to Bitbucket import status
Turbolinks was causing issues with the Bitbucket Javascript/display because it was trying to intercept /import/bitbucket/status even when a 302 redirection occured. Closes #2241
-rw-r--r--CHANGELOG1
-rw-r--r--app/views/import/bitbucket/status.html.haml2
-rw-r--r--app/views/projects/new.html.haml2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 74b41106b97..816031ca8ed 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
Please view this file on the master branch, on stable branches it's out of date.
v 7.14.0 (unreleased)
+ - Disable turbolinks when linking to Bitbucket import status (Stan Hu)
- Fix corrupted binary files when using API files endpoint (Stan Hu)
- Show incompatible projects in Bitbucket import status (Stan Hu)
- Fix coloring of diffs on MR Discussion-tab (Gert Goet)
diff --git a/app/views/import/bitbucket/status.html.haml b/app/views/import/bitbucket/status.html.haml
index 98ae509096e..777eb482714 100644
--- a/app/views/import/bitbucket/status.html.haml
+++ b/app/views/import/bitbucket/status.html.haml
@@ -61,7 +61,7 @@
rather than Git. Please convert
= link_to "them to Git,", "https://www.atlassian.com/git/tutorials/migrating-overview"
and go through the
- = link_to "import flow", status_import_bitbucket_path
+ = link_to "import flow", status_import_bitbucket_path, "data-no-turbolink" => "true"
again.
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index d49eacb30dd..d25fe68242b 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -40,7 +40,7 @@
- if bitbucket_import_enabled?
- = link_to status_import_bitbucket_path, class: 'btn' do
+ = link_to status_import_bitbucket_path, class: 'btn', "data-no-turbolink" => "true" do
%i.fa.fa-bitbucket
Bitbucket
- else