tazwok rev 378

web/index.php: infobox for current live status
author Christophe Lincoln <pankso@slitaz.org>
date Mon Feb 28 00:46:11 2011 +0100 (2011-02-28)
parents f11ce6659cab
children 1134ead2b5f9
files web/index.php
line diff
     1.1 --- a/web/index.php	Sun Feb 27 16:55:00 2011 +0100
     1.2 +++ b/web/index.php	Mon Feb 28 00:46:11 2011 +0100
     1.3 @@ -133,11 +133,13 @@
     1.4  <a name="Summary"></a>
     1.5  <h2>Summary</h2>
     1.6  <?php if (strpos($_SERVER["SERVER_NAME"],"slitaz.org") !== FALSE) { ?>
     1.7 -	<a href="http://tank.slitaz.org/" target="_blank">
     1.8 -	<img src="http://tank.slitaz.org/pics/rrd/cpu-day.png" title="cpu daily" alt="cpu daily" />
     1.9 +	<a href="http://tank.slitaz.org/">
    1.10 +	<img src="http://tank.slitaz.org/pics/rrd/cpu-day.png" 
    1.11 +		title="cpu daily" alt="cpu daily" />
    1.12  	</a>
    1.13  <?php } ?>
    1.14 -<ul>
    1.15 +
    1.16 +<div class="infobox">
    1.17  <?php
    1.18  	// Check curent status (update in real time) and display summary.
    1.19  	$status = "Chroot is not mounted";
    1.20 @@ -161,7 +163,7 @@
    1.21  			else	$status .= " $pkg";
    1.22  		}
    1.23  	}
    1.24 -	echo "<li>".date(DATE_RFC822).": $status</li>\n";
    1.25 +	echo date(DATE_RFC822).": $status\n";
    1.26  	// Set $version_in_url.
    1.27  	if ("$version_in_url") {
    1.28  		$version_in_url="?version=$version_in_url";
    1.29 @@ -169,6 +171,9 @@
    1.30  	else if (strpos($_SERVER["REQUEST_URI"],"?") !== FALSE)
    1.31  		$version_in_url="?";
    1.32  ?>
    1.33 +</div>
    1.34 +
    1.35 +<ul>
    1.36  	<li><a href="http://hg.slitaz.org/wok<?php
    1.37  	if ($version != "cooking") echo "-$version";
    1.38  	echo "\" target=\"_blank\">Packages in the wok</a>: ";