Fixing some bugs related to the last round of changes.
This commit is contained in:
parent
c986405861
commit
54ab93373d
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue