aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-11-14 17:36:29 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-11-16 10:06:50 +0100
commit255c1cfe5b994d84a50054727a6f901093a1e037 (patch)
treebd5aeabf1ceb7a6526b7cc901bcf5c98d062bbdd /server/sonar-web
parent71d4a992b83b41c2b4fa6dc8456584ee8c3324ef (diff)
downloadsonarqube-255c1cfe5b994d84a50054727a6f901093a1e037.tar.gz
sonarqube-255c1cfe5b994d84a50054727a6f901093a1e037.zip
SONAR-8385 Provide an option to extend the landing page
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/AboutApp.js8
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/about/index.html.erb1
2 files changed, 8 insertions, 1 deletions
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 {
)}
</div>
+ {landingText.length > 0 && (
+ <div className="about-page-section bordered-bottom">
+ <div className="about-page-container" dangerouslySetInnerHTML={{ __html: landingText }}/>
+ </div>
+ )}
+
<AboutCleanCode/>
<AboutIssues
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/about/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/about/index.html.erb
index 5a7fb782123..efaf6f1c578 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/about/index.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/about/index.html.erb
@@ -1,6 +1,7 @@
<% content_for :extra_script do %>
<script>
window.sonarqube.signUpAllowed = <%= Property.value("sonar.allowUsersToSignUp") == "true" ? "true" : "false" -%>;
+ window.sonarqube.landingText = '<%= escape_javascript configuration("sonar.lf.landingText", "") -%>';
<% auth_providers = Api::Utils.java_facade.getIdentityProviders().to_a %>
window.sonarqube.authProviders = [