aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-08-04 17:53:08 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-08-10 17:11:54 +0200
commitcc871d7b8c4af1f66234830719d27e45d4136334 (patch)
tree4a0e191441ba2fcd706853a74d6288436640bc85 /server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx
parenta3df8c53bec6e8e61cac61a41c8e7489b5bfb098 (diff)
downloadsonarqube-cc871d7b8c4af1f66234830719d27e45d4136334.tar.gz
sonarqube-cc871d7b8c4af1f66234830719d27e45d4136334.zip
SONAR-6331 add project overview
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx21
1 files changed, 21 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx b/server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx
new file mode 100644
index 00000000000..dddac46e6e4
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/overview/gate-conditions.jsx
@@ -0,0 +1,21 @@
+import React from 'react';
+import Cards from './cards';
+import Card from './card';
+import GateCondition from './gate-condition';
+
+export default React.createClass({
+ render() {
+ const conditions = this.props.gate.conditions
+ .filter((c) => {
+ return c.level !== 'OK';
+ })
+ .map((c) => {
+ return (
+ <Card key={c.metric.name}>
+ <GateCondition condition={c} component={this.props.component}/>
+ </Card>
+ );
+ });
+ return <Cards>{conditions}</Cards>;
+ }
+});