Skip to content

Commit

Permalink
Homepage|Build Repository: Only iBuilderProducts have build error/war…
Browse files Browse the repository at this point in the history
…ning info
  • Loading branch information
danij-deng committed Mar 1, 2012
1 parent 2a6704d commit 2851583
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions web/plugins/buildrepository/buildrepository.php
Expand Up @@ -1160,9 +1160,18 @@ public function execute($args=NULL)
{
$plat = &self::platform($pack->platformId());

$errors = $pack->compileErrorCount();
$warnings = $pack->compileWarnCount();
$issues = $errors + $warnings;
if($pack instanceof iBuilderProduct)
{
$errors = $pack->compileErrorCount();
$warnings = $pack->compileWarnCount();
$issues = $errors + $warnings;
}
else
{
$errors = 0;
$warnings = 0;
$issues = 0;
}

// Determine issue level (think defcon).
if($errors > 0 || !$pack->hasDownloadUri())
Expand All @@ -1187,9 +1196,24 @@ public function execute($args=NULL)
echo $packTitle;
}

?></td>
<td><a href="<?php echo $pack->compileLogUri(); ?>" title="Download build logs for <?php echo $pack->composeFullTitle(); ?>">txt.gz</a></td>
<td class="issue_level <?php echo ($issueLevel.'_issue'); ?>"><?php echo $issues; ?></td>



?></td><td><?php

if($pack instanceof iBuilderProduct)
{
$logUri = $pack->compileLogUri();

?><a href="<?php echo $logUri; ?>" title="Download build logs for <?php echo $pack->composeFullTitle(); ?>">txt.gz</a><?php

}
else
{
?>txt.gz<?php
}

?></td><td class="issue_level <?php echo ($issueLevel.'_issue'); ?>"><?php echo $issues; ?></td>
</tr><?php

$lastPlatId = $pack->platformId();
Expand Down

0 comments on commit 2851583

Please sign in to comment.