tazwok rev 363

bb: summary et refresh args
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 16:00:59 2011 +0100 (2011-02-24)
parents c2c01e4ea11b
children 16be5005f449
files web/index.php
line diff
     1.1 --- a/web/index.php	Thu Feb 24 08:50:48 2011 +0000
     1.2 +++ b/web/index.php	Thu Feb 24 16:00:59 2011 +0100
     1.3 @@ -39,7 +39,12 @@
     1.4      <title>SliTaz Build Bot</title>
     1.5      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
     1.6      <meta name="description" content="Tazbb web interface" />
     1.7 -    <meta name="robots" content="index nofollow" />
     1.8 +<?php
     1.9 +	if (isset($_GET["refresh"]))
    1.10 +		echo "    <meta http-equiv=\"refresh\" content=\""
    1.11 +			.$_GET["refresh"]."; URL=\""
    1.12 +			.$_SERVER["REQUEST_URI"].">\n";
    1.13 +?>    <meta name="robots" content="index nofollow" />
    1.14      <link rel="shortcut icon" href="web/favicon.ico" />
    1.15      <link rel="stylesheet" type="text/css" href="web/slitaz.css" />
    1.16  </head>
    1.17 @@ -141,7 +146,7 @@
    1.18  			else	$status .= " $pkg";
    1.19  		}
    1.20  	}
    1.21 -	echo "<li>Status: $status</li>\n";
    1.22 +	echo "<li>".date(DATE_RFC822).": $status</li>\n";
    1.23  	//include("$db_dir/summary");
    1.24  ?>
    1.25  	<li>Packages in the wok: <?php
    1.26 @@ -160,6 +165,9 @@
    1.27  	system("wc -l < $db_dir/blocked"); ?></li>
    1.28  </ul>
    1.29  
    1.30 +<?php
    1.31 +if (!isset($_GET["summary"])) {
    1.32 +?>
    1.33  <h3>Commit</h3>
    1.34  <pre class="package">
    1.35  <?php
    1.36 @@ -209,6 +217,9 @@
    1.37  ?>
    1.38  </pre>
    1.39  
    1.40 +<?php
    1.41 +} // isset summary
    1.42 +?>
    1.43  <!-- End of content -->
    1.44  </div>
    1.45