aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/helpers/profile-link.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/helpers/profile-link.jsx')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/helpers/profile-link.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/helpers/profile-link.jsx b/server/sonar-web/src/main/js/apps/overview/helpers/profile-link.jsx
new file mode 100644
index 00000000000..c4f12bf07bd
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/overview/helpers/profile-link.jsx
@@ -0,0 +1,8 @@
+import React from 'react';
+
+export default React.createClass({
+ render: function () {
+ const url = `${baseUrl}/profiles/show?key=${encodeURIComponent(this.props.profile)}`;
+ return <a href={url}>{this.props.children}</a>;
+ }
+});