[med-svn] r508 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Tue Oct 2 13:13:34 UTC 2007


Author: hanska-guest
Date: 2007-10-02 13:13:34 +0000 (Tue, 02 Oct 2007)
New Revision: 508

Modified:
   trunk/community/website/index.php
Log:
Showing only last 10 commits


Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php	2007-10-02 13:08:49 UTC (rev 507)
+++ trunk/community/website/index.php	2007-10-02 13:13:34 UTC (rev 508)
@@ -65,13 +65,14 @@
 					$rss->cache_time = 3600;
 					
 					if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
-						foreach ($rs["items"] as $item) {
+						// we show only the last 10 commits by default
+						for ($i = 0; $i < 9); $i++) {
 						?>
 				<tr>
-					<td><?=$item["pubDate"]?></td>
+					<td><?=$rs["items"][$i]["pubDate"]?></td>
 					<td>debian-med</td>
-					<td><?=html_entity_decode($item["description"])?></td>
-					<td><a href="<?=$item["link"]?>">&raquo;</a></td>
+					<td><?=html_entity_decode($rs["items"][$i]["description"])?></td>
+					<td><a href="<?=$rs["items"][$i]["link"]?>">&raquo;</a></td>
 				</tr>
 						<?php
 						}




More information about the debian-med-commit mailing list