aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-06-27 16:08:44 +0200
committerGitHub <noreply@github.com>2016-06-27 16:08:44 +0200
commit4ecb6fc3ec08ee37a1bb5c19d8ca44e2b832b5a7 (patch)
tree763ce4b5a9d7b37982ab54fc64a0597167c2bc3d /server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js
parentc467e84eed1a60bbe8c0fe800e2cada2bb26bb4c (diff)
downloadsonarqube-4ecb6fc3ec08ee37a1bb5c19d8ca44e2b832b5a7.tar.gz
sonarqube-4ecb6fc3ec08ee37a1bb5c19d8ca44e2b832b5a7.zip
refactor quality profiles page (#1056)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js
new file mode 100644
index 00000000000..9c37677df44
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileNotFound.js
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ */
+import React from 'react';
+import { IndexLink } from 'react-router';
+import { translate } from '../../../helpers/l10n';
+
+export default class ProfileNotFound extends React.Component {
+ render () {
+ return (
+ <div className="quality-profile-not-found">
+ <div className="note spacer-bottom">
+ <IndexLink to="/" className="text-muted">
+ {translate('quality_profiles.page')}
+ </IndexLink>
+ </div>
+
+ <div>
+ {translate('quality_profiles.not_found')}
+ </div>
+ </div>
+ );
+ }
+}