From a6023e2d4d2854316989fa86b8363f3273af2cea Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Mon, 27 May 2013 20:36:11 +0200 Subject: [PATCH] Print hash of the commit --- index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index e32836d..3f9a4e3 100644 --- a/index.php +++ b/index.php @@ -83,19 +83,25 @@ Function print_build($current, $next, $buildNr, $chan) nr}\">Build " . htmlspecialchars($current->nr). "
"; + $vspace = ""; if ($next) { if (($current->linux_file && $current->osx_file && $current->linux64_file)) { - print "

"; + $vspace = "

"; } elseif (($current->linux_file && $current->osx_file)) { - print "
"; + $vspace = "
"; } - print ' - ' . + + print $vspace . + '' . ($buildNr ? 'Hide changes <<' : 'Show changes >>') . ''; } - print "" . htmlspecialchars($current->modified). " (" . Layout::since(strtotime($current->modified)) . " ago) + print "" . htmlspecialchars($current->modified). " (" . Layout::since(strtotime($current->modified)) . " ago)
"; + print $vspace . ''; + print substr($current->hash, 0, 10) . ""; + + Print " " . htmlspecialchars($current->chan). " ";