- createLink('repo', 'browse'), "{$lang->repo->maintain}", '', "class='btn btn-link btn-active-text'");?>
+ createLink('repo', 'maintain'), "{$lang->repo->maintain}", '', "class='btn btn-link btn-active-text'");?>
" . $this->lang->repo->create, '', "class='btn btn-primary'");?>
@@ -30,7 +30,7 @@
repo->name); ?>
repo->product); ?>
repo->path; ?>
- actions; ?>
+ actions; ?>
@@ -56,12 +56,18 @@
id&objectID=$objectID", '', 'list', 'edit');
+
+ $jobID = 0;
+ $execClass = 'disabled';
+ $reportClass = 'disabled';
if(isset($sonarRepoList[$repo->id]))
{
- $jobID = $sonarRepoList[$repo->id]->id;
- common::printIcon('sonarqube', 'execJob', "jobID=$jobID", '', 'list', 'sonarqube', 'hiddenwin');
- if(in_array($jobID, $successJobs)) common::printIcon('sonarqube', 'reportView', "jobID=$jobID", '', 'list', 'audit', '', 'iframe', true);
+ $execClass = '';
+ $jobId = $sonarRepoList[$repo->id]->id;
+ if(in_array($jobID, $successJobs)) $reportClass = '';
}
+ common::printIcon('sonarqube', 'execJob', "jobID=$jobID", '', 'list', 'sonarqube', 'hiddenwin', $execClass);
+ common::printIcon('sonarqube', 'reportView', "jobID=$jobID", '', 'list', 'audit', '', "iframe $reportClass", true);
common::printIcon('repo', 'delete', "repoID=$repo->id&objectID=$objectID", '', 'list', 'trash', 'hiddenwin');
?>