diff --git a/index.php b/index.php index f55a223..1c66090 100644 --- a/index.php +++ b/index.php @@ -80,9 +80,18 @@ Function print_build($current, $next, $buildNr, $chan) nr}\">Build " . htmlspecialchars($current->nr). " " . htmlspecialchars($current->modified). " (" . Layout::since(strtotime($current->modified)) . " ago) " . htmlspecialchars($current->chan). " - Windows Installer \"Download\"/   - Build Log - "; + \"Download Windows   + Build Log"; + + if ($current->linux_file) { + print "
\"Download Linux"; + } + + if ($current->osx_file) { + print "
\"Download Mac OS X"; + } + + print ""; if ($next) { print ' ' . @@ -136,6 +145,10 @@ if ($res = $DB->query(kl_str_sql("select * from builds where chan=!s $where orde $build = new stdClass; $DB->loadFromDbRow($build, $res, $row); + $linux_file = "SingularityAlpha-i686-{$build->version}.tar.bz2"; + $build->linux_file = file_exists($linux_file) ? $linux_file : false; + $osx_file = "SingularityAlpha_" . str_replace(".", "_", $build->version) . ".dmg"; + $build->osx_file = file_exists($osx_file) ? $osx_file : false; $builds[] = $build; } }