summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-11 06:10:14 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-01-11 06:10:14 +0100
commit0b294fc2bb336dbf564ca7508f4a6b8e0e17682a (patch)
treec5f8be740de7ee48df13cc5e668fff27853c5725 /app
parent6ef28ace53abb12e1475746882237cecf8f95d7e (diff)
downloadgitlab-ce-0b294fc2bb336dbf564ca7508f4a6b8e0e17682a.tar.gz
Use new tab for link in flash
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/clusters/gcp_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/clusters/gcp_controller.rb b/app/controllers/projects/clusters/gcp_controller.rb
index 44ccfaf2402..51bd5e8cfce 100644
--- a/app/controllers/projects/clusters/gcp_controller.rb
+++ b/app/controllers/projects/clusters/gcp_controller.rb
@@ -42,8 +42,7 @@ class Projects::Clusters::GcpController < Projects::ApplicationController
when 'true'
return
when 'false'
- flash[:alert] = _('Please <a href=%{link_to_billing}>enable billing for one of your projects to be able to create a cluster</a>. Please try again.').html_safe %
- { link_to_billing: "https://console.cloud.google.com/freetrial?utm_campaign=2018_cpanel&utm_source=gitlab&utm_medium=referral" }
+ flash[:alert] = _('Please <a href=%{link_to_billing} target="_blank" rel="noopener noreferrer">enable billing for one of your projects to be able to create a cluster</a>. Please try again.').html_safe % { link_to_billing: "https://console.cloud.google.com/freetrial?utm_campaign=2018_cpanel&utm_source=gitlab&utm_medium=referral" }
else
flash[:alert] = _('We could not verify that one of your projects on GCP has billing enabled. Please try again.')
end