From 4f604c496b27ed6491330729e3ea6422faf69db8 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 1 Feb 2017 18:18:55 +0100 Subject: [PATCH] SONAR-8457 prepare for new branding process --- .../main/js/app/components/GlobalFooter.js | 12 +----- .../js/app/components/GlobalFooterBranding.js | 37 +++++++++++++++++++ 2 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooter.js b/server/sonar-web/src/main/js/app/components/GlobalFooter.js index 8ca593eb458..3faccd10282 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooter.js +++ b/server/sonar-web/src/main/js/app/components/GlobalFooter.js @@ -22,6 +22,7 @@ import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { getAppState } from '../../store/rootReducer'; +import GlobalFooterBranding from './GlobalFooterBranding'; class GlobalFooter extends React.Component { render () { @@ -41,16 +42,7 @@ class GlobalFooter extends React.Component { )} -
- This application is based on - {' '} - SonarQube™ - {' '} - but is not an official version provided by - {' '} - SonarSource SA. -
- +
Version {sonarqubeVersion} diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js b/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js new file mode 100644 index 00000000000..78f85cb08a0 --- /dev/null +++ b/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.js @@ -0,0 +1,37 @@ +/* + * SonarQube + * Copyright (C) 2009-2016 SonarSource SA + * mailto:contact AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * 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'; + +export default class GlobalFooterBranding extends React.Component { + render () { + return ( +
+ This application is based on + {' '} + SonarQube™ + {' '} + but is not an official version provided by + {' '} + SonarSource SA. +
+ ); + } +} -- 2.39.5