]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7862 Add links to projects on profile page 1105/head
authorStas Vilchik <vilchiks@gmail.com>
Fri, 15 Jul 2016 13:10:03 +0000 (15:10 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 15 Jul 2016 14:52:29 +0000 (16:52 +0200)
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileProjects.js

index 836e47653ccbfe2e84a032f6ecd214d3bcaa9291..6bdf18fca160af17ea3fdb8667dd252e9f2edf2d 100644 (file)
@@ -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>