diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-07-15 15:10:03 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-07-15 16:52:29 +0200 |
commit | 26c2600790d61b140b895f05050df9dd31f52393 (patch) | |
tree | 7dd90ab65b9d20b122a9d0729b1e111700fca000 | |
parent | 31aaa06f409a98a27e4f2ce1696676b78ee57ded (diff) | |
download | sonarqube-26c2600790d61b140b895f05050df9dd31f52393.tar.gz sonarqube-26c2600790d61b140b895f05050df9dd31f52393.zip |
SONAR-7862 Add links to projects on profile page
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js index 836e47653cc..6bdf18fca16 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js +++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js @@ -23,6 +23,7 @@ import QualifierIcon from '../../../components/shared/qualifier-icon'; import { ProfileType } from '../propTypes'; import { getProfileProjects } from '../../../api/quality-profiles'; import { translate } from '../../../helpers/l10n'; +import { getComponentUrl } from '../../../helpers/urls'; export default class ProfileProjects extends React.Component { static propTypes = { @@ -111,9 +112,12 @@ export default class ProfileProjects extends React.Component { <li key={project.uuid} className="spacer-top js-profile-project" data-key={project.key}> - <QualifierIcon qualifier="TRK"/> - {' '} - {project.name} + <a className="link-with-icon" + href={getComponentUrl(project.key)}> + <QualifierIcon qualifier="TRK"/> + {' '} + <span>{project.name}</span> + </a> </li> ))} </ul> |