From 73fb245fdaf461c084713fba600b982bcb529238 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 2 Feb 2016 16:52:25 +0100 Subject: [PATCH] improve rendering of login form with many oauth providers --- .../sonar-web/src/main/less/pages/login.less | 3 +- .../WEB-INF/app/views/sessions/_form.html.erb | 32 ++++++++++--------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/server/sonar-web/src/main/less/pages/login.less b/server/sonar-web/src/main/less/pages/login.less index 3af71a8b5ef..15f37875df4 100644 --- a/server/sonar-web/src/main/less/pages/login.less +++ b/server/sonar-web/src/main/less/pages/login.less @@ -70,7 +70,6 @@ } .oauth-providers { - margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid @barBorderColor; @@ -80,6 +79,8 @@ flex-wrap: wrap; & > li { + margin-bottom: 30px; + & > a { display: block; width: 180px; diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/_form.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/_form.html.erb index 556822c9e87..d0b72146d04 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/_form.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/_form.html.erb @@ -1,20 +1,22 @@

Log In to SonarQube

-
- <% auth_providers = Api::Utils.java_facade.getIdentityProviders().to_a %> - -
+<% auth_providers = Api::Utils.java_facade.getIdentityProviders().to_a %> +<% if auth_providers.size > 0 %> +
+ +
+<% end %>
-- 2.39.5