Skip to content

Commit

Permalink
Homepage|Build Repository: Added package yield to the build event sum…
Browse files Browse the repository at this point in the history
…mary
  • Loading branch information
danij-deng committed Mar 15, 2012
1 parent d6db12b commit eee38bf
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions web/plugins/buildrepository/buildrepository.php
Expand Up @@ -1132,21 +1132,6 @@ private function countInstallablePackages(&$build)
return $count;
}

private function outputBuildSummary(&$build)
{
if(!$build instanceof BuildEvent) return;

$packageCount = $this->countInstallablePackages($build);

if($packageCount > 0)
{
$packages = '<em>'. htmlspecialchars($packageCount) .'</em>';

?><p><?php echo $packages; ?> installable binary packages were produced by this build are listed in the table above.</p><?php

}
}

private function outputBuildEventMetadata(&$build)
{
if(!$build instanceof BuildEvent) return;
Expand All @@ -1166,10 +1151,18 @@ private function outputBuildEventMetadata(&$build)
<tr><th colspan="2">Event</th></tr>
<tr><td>Start date </td><td><?php echo htmlspecialchars(date(/*DATE_RFC850*/ "d-M-Y", $build->startDate())); ?></td></tr>
<tr><td>Start time </td><td><?php echo htmlspecialchars(date(/*DATE_RFC850*/ "H:i:s T", $build->startDate())); ?></td></tr>
<tr><td>Build number </td><td><a class="link-definition" href="<?php echo $buildNumberLink; ?>" title="<?php echo $buildNumberLinkTitle; ?>"><?php echo htmlspecialchars(ucfirst($buildNumberLabel)); ?></a></td></tr>
<tr><td>Type </td><td><a class="link-definition" href="<?php echo $releaseTypeLink; ?>" title="<?php echo $releaseTypeLinkTitle; ?>"><?php echo htmlspecialchars($releaseTypeLabel); ?></a></td></tr>
</tbody>
</table><?php
<tr><td>Release type </td><td><a class="link-definition" href="<?php echo $releaseTypeLink; ?>" title="<?php echo $releaseTypeLinkTitle; ?>"><?php echo htmlspecialchars($releaseTypeLabel); ?></a></td></tr>
<tr><td>Build number </td><td><a class="link-definition" href="<?php echo $buildNumberLink; ?>" title="<?php echo $buildNumberLinkTitle; ?>"><?php echo htmlspecialchars(ucfirst($buildNumberLabel)); ?></a></td></tr><?php

$installablesCount = $this->countInstallablePackages($build);
if($installablesCount > 0)
{

?><tr><td>Packages </td><td><?php echo htmlspecialchars($installablesCount); ?></td></tr><?php

}

?></tbody></table><?php
}

private function outputBuildPackageList(&$build)
Expand Down Expand Up @@ -1318,8 +1311,6 @@ public function execute($args=NULL)

?></div><?php

$this->outputBuildSummary($build);

$this->outputBuildCommitLog($build);

?></div><?php
Expand Down

0 comments on commit eee38bf

Please sign in to comment.