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