From cc871d7b8c4af1f66234830719d27e45d4136334 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 4 Aug 2015 17:53:08 +0200 Subject: SONAR-6331 add project overview --- .../main/js/components/shared/status-helper.jsx | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 server/sonar-web/src/main/js/components/shared/status-helper.jsx (limited to 'server/sonar-web/src/main/js/components/shared/status-helper.jsx') diff --git a/server/sonar-web/src/main/js/components/shared/status-helper.jsx b/server/sonar-web/src/main/js/components/shared/status-helper.jsx new file mode 100644 index 00000000000..033fd3ff786 --- /dev/null +++ b/server/sonar-web/src/main/js/components/shared/status-helper.jsx @@ -0,0 +1,26 @@ +define([ + 'libs/third-party/react', + './status-icon' +], function (React, StatusIcon) { + + return React.createClass({ + render: function () { + if (!this.props.status) { + return null; + } + var resolution; + if (this.props.resolution) { + resolution = ' (' + window.t('issue.resolution', this.props.resolution) + ')'; + } + return ( + + +   + {window.t('issue.status', this.props.status)} + {resolution} + + ); + } + }); + +}); -- cgit v1.2.3