Fixing commit links

This commit is contained in:
Dan Cryer 2014-12-03 13:15:33 +00:00
parent 1999231ec3
commit b91dafab41
3 changed files with 9 additions and 3 deletions

View file

@ -46,7 +46,13 @@ class HomeController extends \PHPCI\Controller
$projects = $this->projectStore->getWhere(array(), 50, 0, array(), array('title' => 'ASC'));
$this->view->builds = $this->buildStore->getLatestBuilds(null, 10);
$builds = $this->buildStore->getLatestBuilds(null, 10);
foreach ($builds as &$build) {
$build = BuildFactory::getBuild($build);
}
$this->view->builds = $builds;
$this->view->projects = $projects['items'];
$this->view->summary = $this->getSummaryHtml($projects);

View file

@ -51,7 +51,7 @@ switch($build->getStatus())
<?php
if ($build->getCommitId() !== 'Manual') {
print sprintf(
'<a href="%s">%s (%s)</a>',
'<a href="%s" target="_blank">%s (%s)</a>',
$build->getCommitLink(),
substr($build->getCommitId(), 0, 7),
$build->getCommitterEmail()

View file

@ -74,7 +74,7 @@
<?php
if ($build->getCommitId() !== 'Manual') {
print sprintf(
'<a href="%s">%s (%s)</a>',
'<a href="%s" target="_blank">%s (%s)</a>',
$build->getCommitLink(),
substr($build->getCommitId(), 0, 7),
$build->getCommitterEmail()