From 92a50782253fafea4d1b662cb00271f800fde977 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Wed, 3 Dec 2014 10:10:39 +0000 Subject: [PATCH] Display short commit link and email address --- PHPCI/View/BuildsTable.phtml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/PHPCI/View/BuildsTable.phtml b/PHPCI/View/BuildsTable.phtml index fc604a4e..6da8a268 100644 --- a/PHPCI/View/BuildsTable.phtml +++ b/PHPCI/View/BuildsTable.phtml @@ -50,11 +50,14 @@ switch($build->getStatus()) getCommitId() !== 'Manual') { - print ''; - } - print $build->getCommitId(); - if ($build->getCommitId() !== 'Manual') { - print ''; + print sprintf( + '%s (%s)', + $build->getCommitLink(), + substr($build->getCommitId(), 0, 7), + $build->getCommitterEmail() + ); + } else { + print 'Manual Build'; } ?>