Skip to content

Commit

Permalink
Homepage|Build Repository: Length limited build stream widgets always…
Browse files Browse the repository at this point in the history
… include that many elements

If there are insufficent events in the target chain then the list
will be padded with empty elements.
  • Loading branch information
danij-deng committed Mar 18, 2012
1 parent 142f711 commit 903ad96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/plugins/buildrepository/buildrepository.php
Expand Up @@ -1606,6 +1606,16 @@ private function outputBuildStreamWidget(&$headEvent, $chainProperty='version',
$n++;
if($chainLengthMax > 0 && $n >= $chainLengthMax) break;
}

if($chainLengthMax > 0)
{
while($n++ < $chainLengthMax)
{

?><li></li><?php

}
}
}
else
{
Expand Down

0 comments on commit 903ad96

Please sign in to comment.