Fixing some bugs related to the last round of changes.

This commit is contained in:
Dan Cryer 2015-02-12 13:17:42 +00:00
commit 54ab93373d
2 changed files with 5 additions and 1 deletions

View file

@ -147,6 +147,7 @@ class ProjectController extends \PHPCI\Controller
$branch = $this->getParam('branch', '');
$builds = $this->getLatestBuildsHtml($projectId, urldecode($branch));
$this->response->disableLayout();
$this->response->setContent($builds[0]);
return $this->response;
}

View file

@ -17,7 +17,6 @@
<?php
foreach ($builds as $build):
switch ($build->getStatus()) {
case \PHPCI\Model\Build::STATUS_NEW:
$updated = $build->getCreated();
@ -44,6 +43,10 @@
break;
}
if (!$updated) {
$updated = $build->getCreated();
}
if ($updated->format('Y-m-d') != $last->format('Y-m-d')): $last = $updated;
?>
<li class="time-label">