Commit 118bb7c0 authored by Matija Čupić's avatar Matija Čupić

Add link to create Google account in clusters page

parent ca962e51
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
- if @authorize_url - if @authorize_url
= link_to @authorize_url do = link_to @authorize_url do
= image_tag('auth_buttons/signin_with_google.png', width: '191px') = image_tag('auth_buttons/signin_with_google.png', width: '191px')
= s_('ClusterIntegration|or create a new')
= link_to('Google account', 'https://accounts.google.com/signup', target: '_blank', rel: 'noopener noreferrer')
- else - else
- link = link_to(s_('ClusterIntegration|properly configured'), help_page_path("integration/google"), target: '_blank', rel: 'noopener noreferrer') - link = link_to(s_('ClusterIntegration|properly configured'), help_page_path("integration/google"), target: '_blank', rel: 'noopener noreferrer')
= s_('Google authentication is not %{link_to_documentation}. Ask your GitLab administrator if you want to use this service.').html_safe % { link_to_documentation: link } = s_('Google authentication is not %{link_to_documentation}. Ask your GitLab administrator if you want to use this service.').html_safe % { link_to_documentation: link }
...@@ -133,6 +133,7 @@ feature 'Gcp Cluster', :js do ...@@ -133,6 +133,7 @@ feature 'Gcp Cluster', :js do
it 'user sees a login page' do it 'user sees a login page' do
expect(page).to have_css('.signin-with-google') expect(page).to have_css('.signin-with-google')
expect(page).to have_link('Google account')
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment