aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-10-12 09:46:54 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-12 20:20:58 +0200
commit39fc37690c2e3ff6b64e916e72649cc89c21915b (patch)
tree7b7655fec9306b43c84dd6b197d822756503c822 /server/sonar-web/src/main/js
parentc6ebf9cf36b441053b5388098cd23e559e065936 (diff)
downloadsonarqube-39fc37690c2e3ff6b64e916e72649cc89c21915b.tar.gz
sonarqube-39fc37690c2e3ff6b64e916e72649cc89c21915b.zip
SONAR-10890 use new "official" build flag in the web app
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx (renamed from server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js)25
1 files changed, 20 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js b/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx
index 8f1f47e880d..8b9918bbfa6 100644
--- a/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js
+++ b/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx
@@ -17,18 +17,33 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-// @flow
-import React from 'react';
+import * as React from 'react';
export default function GlobalFooterBranding() {
- return (
+ const { official } = window as any;
+ return official ? (
+ <div>
+ SonarQube&trade; technology is powered by{' '}
+ <a href="http://www.sonarsource.com" rel="noopener noreferrer" target="_blank">
+ SonarSource SA
+ </a>
+ </div>
+ ) : (
<div>
This application is based on{' '}
- <a href="http://www.sonarqube.org/" title="SonarQube™">
+ <a
+ href="http://www.sonarqube.org/"
+ rel="noopener noreferrer"
+ target="_blank"
+ title="SonarQube™">
SonarQube™
</a>{' '}
but is <strong>not</strong> an official version provided by{' '}
- <a href="http://www.sonarsource.com" title="SonarSource SA">
+ <a
+ href="http://www.sonarsource.com"
+ rel="noopener noreferrer"
+ target="_blank"
+ title="SonarSource SA">
SonarSource SA
</a>
.