diff --git a/PHPCI/View/Home/index.phtml b/PHPCI/View/Home/index.phtml index fb49ba88..183aa366 100644 --- a/PHPCI/View/Home/index.phtml +++ b/PHPCI/View/Home/index.phtml @@ -20,25 +20,25 @@ switch ($build->getStatus()) { case \PHPCI\Model\Build::STATUS_NEW: $updated = $build->getCreated(); - $label = 'created'; + $label = 'Created'; $color = 'blue'; break; case \PHPCI\Model\Build::STATUS_RUNNING: $updated = $build->getStarted(); - $label = 'started'; + $label = 'Started'; $color = 'yellow'; break; case \PHPCI\Model\Build::STATUS_SUCCESS: $updated = $build->getFinished(); - $label = 'success'; + $label = 'Successful'; $color = 'green'; break; case \PHPCI\Model\Build::STATUS_FAILED: $updated = $build->getFinished(); - $label = 'failed'; + $label = 'Failed'; $color = 'red'; break; } @@ -66,10 +66,24 @@ Build #getId(); ?> + - +
- Build + getCommitId() !== 'Manual') { + print sprintf( + '%s (%s)', + $build->getCommitLink(), + substr($build->getCommitId(), 0, 7), + $build->getCommitterEmail() + ); + } else { + print 'Manual Build'; + } + ?> + - getCommitMessage(); ?>
diff --git a/PHPCI/View/SummaryTable.phtml b/PHPCI/View/SummaryTable.phtml index 04cecd7f..d0f249d9 100644 --- a/PHPCI/View/SummaryTable.phtml +++ b/PHPCI/View/SummaryTable.phtml @@ -67,7 +67,7 @@ foreach($projects as $project): if ($failures == 0) { $health = 'Good'; $subcls = 'green'; - } elseif ($failures > $successes) { + } elseif ($successes == 0) { $health = 'Bad'; $subcls = 'red'; } else {