Making commit links work throughout the UI
This commit is contained in:
parent
d2d966ee69
commit
0193f07de2
5 changed files with 33 additions and 10 deletions
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
namespace PHPCI\Controller;
|
||||
|
||||
use PHPCI\BuildFactory;
|
||||
use PHPCI\Model\Build;
|
||||
use PHPCI\Model\Project;
|
||||
use b8;
|
||||
|
|
@ -113,6 +114,11 @@ class ProjectController extends \PHPCI\Controller
|
|||
$order = array('id' => 'DESC');
|
||||
$builds = $this->buildStore->getWhere($criteria, 10, $start, array(), $order);
|
||||
$view = new b8\View('BuildsTable');
|
||||
|
||||
foreach ($builds['items'] as &$build) {
|
||||
$build = BuildFactory::getBuild($build);
|
||||
}
|
||||
|
||||
$view->builds = $builds['items'];
|
||||
|
||||
return array($view->render(), $builds['count']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue