aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2018-06-26 10:19:59 +0200
committersonartech <sonartech@sonarsource.com>2018-06-29 09:10:15 +0200
commit6bee2d5ea8bb8b6796cf8ece4f6937e7870459d2 (patch)
tree6419d8fb54f6162c3deffedb749bb0d1ee977f23 /server/sonar-web/src/main/js
parent1798e077f612c661a4026ac6d91648d24e863c25 (diff)
downloadsonarqube-6bee2d5ea8bb8b6796cf8ece4f6937e7870459d2.tar.gz
sonarqube-6bee2d5ea8bb8b6796cf8ece4f6937e7870459d2.zip
SONARCLOUD-90 Add Security Page for SonarCloud
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx3
-rw-r--r--server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap11
-rw-r--r--server/sonar-web/src/main/js/apps/about/sonarcloud/Footer.tsx5
3 files changed, 19 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx b/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx
index 87d9cb5d715..3c45ab1a6e1 100644
--- a/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx
+++ b/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx
@@ -60,6 +60,9 @@ export default function GlobalFooterSonarCloud() {
<Link to="/documentation/privacy">{translate('footer.privacy')}</Link>
</li>
<li className="page-footer-menu-item">
+ <Link to="/documentation/security">{translate('footer.security')}</Link>
+ </li>
+ <li className="page-footer-menu-item">
<a
href="https://community.sonarsource.com/c/help/sc"
rel="noopener noreferrer"
diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap
index fd080d29f0c..3f5dac2e82e 100644
--- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooterSonarCloud-test.tsx.snap
@@ -69,6 +69,17 @@ exports[`should render correctly 1`] = `
<li
className="page-footer-menu-item"
>
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to="/documentation/security"
+ >
+ footer.security
+ </Link>
+ </li>
+ <li
+ className="page-footer-menu-item"
+ >
<a
href="https://community.sonarsource.com/c/help/sc"
rel="noopener noreferrer"
diff --git a/server/sonar-web/src/main/js/apps/about/sonarcloud/Footer.tsx b/server/sonar-web/src/main/js/apps/about/sonarcloud/Footer.tsx
index 327e3d7875f..202ae9f353c 100644
--- a/server/sonar-web/src/main/js/apps/about/sonarcloud/Footer.tsx
+++ b/server/sonar-web/src/main/js/apps/about/sonarcloud/Footer.tsx
@@ -103,6 +103,11 @@ export default function Footer() {
Privacy
</Link>
</li>
+ <li className="spacer-top">
+ <Link className="sc-footer-link" to="/documentation/security">
+ Security
+ </Link>
+ </li>
</ul>
</div>
</nav>