Display links to log files if present
This commit is contained in:
13
index.php
13
index.php
@@ -98,18 +98,29 @@ Function print_build($current, $next, $buildNr, $chan)
|
||||
print "</th><th>" . htmlspecialchars($current->modified). " (" . Layout::since(strtotime($current->modified)) . " ago)</th>
|
||||
<th>" . htmlspecialchars($current->chan). "</th>
|
||||
<th><a href='" . URL_ROOT . "/" . $current->file . "'><img src=\"" . IMG_ROOT . "/dl.gif\" alt=\"Download Windows Build\"/> Windows</a>
|
||||
<a class='dimmer' href='" . URL_ROOT . "/" . $current->file . ".log'>Build Log</a>";
|
||||
<a class='dimmer' href='" . URL_ROOT . "/" . $current->file . ".log'>Build Log</a>";
|
||||
|
||||
if ($current->linux_file) {
|
||||
print "<br/><a href='" . URL_ROOT . "/" . $current->linux_file . "'><img src=\"" . IMG_ROOT . "/dl.gif\" alt=\"Download Linux Build (32 bit)\"/> Linux (32 bit)</a>";
|
||||
if (file_exists($current->linux_file . ".log")) {
|
||||
print " <a class='dimmer' href='" . URL_ROOT . "/" . $current->linux_file . ".log'>Build Log</a>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if ($current->linux64_file) {
|
||||
print "<br/><a href='" . URL_ROOT . "/" . $current->linux64_file . "'><img src=\"" . IMG_ROOT . "/dl.gif\" alt=\"Download Linux Build (64 bit)\"/> Linux (64 bit)</a>";
|
||||
if (file_exists($current->linux64_file . ".log")) {
|
||||
print " <a class='dimmer' href='" . URL_ROOT . "/" . $current->linux64_file . ".log'>Build Log</a>";
|
||||
}
|
||||
}
|
||||
|
||||
if ($current->osx_file) {
|
||||
print "<br/><a href='" . URL_ROOT . "/" . $current->osx_file . "'><img src=\"" . IMG_ROOT . "/dl.gif\" alt=\"Download Mac OS X Build\"/> Mac OS X</a>";
|
||||
if (file_exists($current->osx_file . ".log")) {
|
||||
print " <a class='dimmer' href='" . URL_ROOT . "/" . $current->osx_file . ".log'>Build Log</a>";
|
||||
}
|
||||
}
|
||||
|
||||
print "</th></tr>";
|
||||
|
||||
Reference in New Issue
Block a user