diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/clusters/_header.html.haml | 27 | ||||
-rw-r--r-- | app/views/projects/clusters/_sidebar.html.haml | 15 | ||||
-rw-r--r-- | app/views/projects/clusters/login.html.haml | 8 | ||||
-rw-r--r-- | app/views/projects/clusters/new.html.haml | 6 | ||||
-rw-r--r-- | app/views/projects/clusters/show.html.haml | 9 |
5 files changed, 34 insertions, 31 deletions
diff --git a/app/views/projects/clusters/_header.html.haml b/app/views/projects/clusters/_header.html.haml index c7c5272089a..b3b98ea04f6 100644 --- a/app/views/projects/clusters/_header.html.haml +++ b/app/views/projects/clusters/_header.html.haml @@ -1,15 +1,14 @@ -.col-lg-8 - %h4.prepend-top-0 - = s_('ClusterIntegration|Create new cluster on Google Container Engine') - %p - = s_('ClusterIntegration|To create a new cluster on Google Container Engine, please sign in with your Google account:') - %ul +%h4.prepend-top-0 + = s_('ClusterIntegration|Create new cluster on Google Container Engine') +%p + = s_('ClusterIntegration|To create a new cluster on Google Container Engine, please sign in with your Google account:') +%ul + %li + - link_to_container_engine = link_to(s_('ClusterIntegration|access to Google Container Engine'), 'https://console.cloud.google.com', target: '_blank', rel: 'noopener noreferrer') + = s_('ClusterIntegration|Your account must have %{link_to_container_engine}').html_safe % { link_to_container_engine: link_to_container_engine } %li - - link_to_container_engine = link_to(s_('ClusterIntegration|access to Google Container Engine'), 'https://console.cloud.google.com', target: '_blank', rel: 'noopener noreferrer') - = s_('ClusterIntegration|Your account must have %{link_to_container_engine}').html_safe % { link_to_container_engine: link_to_container_engine } - %li - - link_to_requirements = link_to(s_('ClusterIntegration|meets the requirements'), 'https://cloud.google.com/container-engine/docs/quickstart', target: '_blank', rel: 'noopener noreferrer') - = s_('ClusterIntegration|Make sure your account %{link_to_requirements} to create clusters').html_safe % { link_to_requirements: link_to_requirements } - %li - - link_to_container_project = link_to(s_('ClusterIntegration|Google Container Engine project'), target: '_blank', rel: 'noopener noreferrer') - = s_('ClusterIntegration|A %{link_to_container_project} must have been created under this account').html_safe % { link_to_container_project: link_to_container_project } + - link_to_requirements = link_to(s_('ClusterIntegration|meets the requirements'), 'https://cloud.google.com/container-engine/docs/quickstart', target: '_blank', rel: 'noopener noreferrer') + = s_('ClusterIntegration|Make sure your account %{link_to_requirements} to create clusters').html_safe % { link_to_requirements: link_to_requirements } + %li + - link_to_container_project = link_to(s_('ClusterIntegration|Google Container Engine project'), target: '_blank', rel: 'noopener noreferrer') + = s_('ClusterIntegration|A %{link_to_container_project} must have been created under this account').html_safe % { link_to_container_project: link_to_container_project } diff --git a/app/views/projects/clusters/_sidebar.html.haml b/app/views/projects/clusters/_sidebar.html.haml index 739c38e073a..0d744f1b028 100644 --- a/app/views/projects/clusters/_sidebar.html.haml +++ b/app/views/projects/clusters/_sidebar.html.haml @@ -1,8 +1,7 @@ -.col-sm-4 - %h4.prepend-top-0 - = s_('ClusterIntegration|Cluster integration') - %p - = s_('ClusterIntegration|With a cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.') - %p - - link = link_to(s_('ClusterIntegration|cluster'), help_page_path('TODO'), target: '_blank', rel: 'noopener noreferrer') - = s_('ClusterIntegration|Learn more about %{link_to_documentation}').html_safe % { link_to_documentation: link } +%h4.prepend-top-0 + = s_('ClusterIntegration|Cluster integration') +%p + = s_('ClusterIntegration|With a cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.') +%p + - link = link_to(s_('ClusterIntegration|cluster'), help_page_path('TODO'), target: '_blank', rel: 'noopener noreferrer') + = s_('ClusterIntegration|Learn more about %{link_to_documentation}').html_safe % { link_to_documentation: link } diff --git a/app/views/projects/clusters/login.html.haml b/app/views/projects/clusters/login.html.haml index 3c68d4dbabc..1492f6163e1 100644 --- a/app/views/projects/clusters/login.html.haml +++ b/app/views/projects/clusters/login.html.haml @@ -1,10 +1,12 @@ .row.prepend-top-default - = render 'sidebar' - = render 'header' + .col-sm-4 + = render 'sidebar' + .col-sm-8 + = render 'header' .row .col-sm-8.col-sm-offset-4 - if @authorize_url - %a{ href: @authorize_url } + = link_to @authorize_url do = image_tag('auth_buttons/signin_with_google.png') - else - link = link_to(s_('ClusterIntegration|properly configured'), help_page_path("integration/google"), target: '_blank', rel: 'noopener noreferrer') diff --git a/app/views/projects/clusters/new.html.haml b/app/views/projects/clusters/new.html.haml index e1ff4c6136e..4b7214b3c62 100644 --- a/app/views/projects/clusters/new.html.haml +++ b/app/views/projects/clusters/new.html.haml @@ -1,4 +1,6 @@ .row.prepend-top-default - = render 'sidebar' - = render 'header' + .col-sm-4 + = render 'sidebar' + .col-sm-8 + = render 'header' = render 'form' diff --git a/app/views/projects/clusters/show.html.haml b/app/views/projects/clusters/show.html.haml index ecf43981c49..f3124acfa1c 100644 --- a/app/views/projects/clusters/show.html.haml +++ b/app/views/projects/clusters/show.html.haml @@ -3,8 +3,9 @@ toggle_status: @cluster.enabled? ? 'true': 'false', cluster_status: @cluster.status_name, cluster_status_reason: @cluster.status_reason }} - = render 'sidebar' - .col-lg-8 + .col-sm-4 + = render 'sidebar' + .col-sm-8 %h4.prepend-top-0 = s_('ClusterIntegration|Enable cluster integration') %p @@ -24,7 +25,7 @@ %button{ type: 'button', class: "js-toggle-cluster project-feature-toggle #{'checked' unless !@cluster.enabled?} #{'disabled' unless can?(current_user, :update_cluster, @cluster)}", - 'aria-label': 'Toggle', + 'aria-label': s_('ClusterIntegration|Toggle Cluster'), disabled: !can?(current_user, :update_cluster, @cluster), data: { 'enabled-text': 'Enabled', 'disabled-text': 'Disabled' } } @@ -50,7 +51,7 @@ = s_('ClusterIntegration|Cluster was successfully created on Google Container Engine.') .form_group - %label + %label{ for: 'cluter_name' } = s_('ClusterIntegration|Cluster name') .input-group %input.form-control{ value: @cluster.gcp_cluster_name, disabled: true} |