From 255c1cfe5b994d84a50054727a6f901093a1e037 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 14 Nov 2016 17:36:29 +0100 Subject: [PATCH] SONAR-8385 Provide an option to extend the landing page --- .../ce/container/ComputeEngineContainerImplTest.java | 2 +- .../src/main/js/apps/about/components/AboutApp.js | 8 +++++++- .../main/webapp/WEB-INF/app/views/about/index.html.erb | 1 + .../org/sonar/core/config/CorePropertyDefinitions.java | 7 +++++++ .../sonar/core/config/CorePropertyDefinitionsTest.java | 2 +- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java index d070de48002..e1815013c35 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java @@ -108,7 +108,7 @@ public class ComputeEngineContainerImplTest { + 25 // level 1 + 47 // content of DaoModule + 2 // content of EsSearchModule - + 62 // content of CorePropertyDefinitions + + 63 // content of CorePropertyDefinitions + 1 // content of CePropertyDefinitions ); assertThat(picoContainer.getParent().getParent().getParent().getParent()).isNull(); diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutApp.js b/server/sonar-web/src/main/js/apps/about/components/AboutApp.js index bc4c24d3c7c..05c0e1e39e1 100644 --- a/server/sonar-web/src/main/js/apps/about/components/AboutApp.js +++ b/server/sonar-web/src/main/js/apps/about/components/AboutApp.js @@ -80,7 +80,7 @@ export default class AboutApp extends React.Component { } const isAuthenticated = !!window.SS.user; - const { signUpAllowed } = window.sonarqube; + const { signUpAllowed, landingText } = window.sonarqube; const loginFormShown = !isAuthenticated && this.props.location.query.login !== undefined; const logoUrl = this.state.logoUrl || `${window.baseUrl}/images/logo.svg`; @@ -114,6 +114,12 @@ export default class AboutApp extends React.Component { )} + {landingText.length > 0 && ( +
+
+
+ )} +