[med-svn] r515 - trunk/community/website
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Tue Oct 2 13:46:31 UTC 2007
Author: hanska-guest
Date: 2007-10-02 13:46:31 +0000 (Tue, 02 Oct 2007)
New Revision: 515
Modified:
trunk/community/website/index.php
Log:
Link from the committer to its alioth page
Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php 2007-10-02 13:26:28 UTC (rev 514)
+++ trunk/community/website/index.php 2007-10-02 13:46:31 UTC (rev 515)
@@ -69,11 +69,17 @@
if ($rs = $rss->get("http://cia.vc/stats/project/Debian-Med/.rss")) {
// we show only the last 10 commits by default
for ($i = 0; $i < 9; $i++) {
+ $desc = html_entity_decode($rs["items"][$i]["description"];
+ $desc = preg_replace("/\(^.* \)\(.*\)\( ::.*\)/",
+ "$1<a href=\"http:\/\/alioth.debian.org\/users\/$2\">$2<\/a>$3",
+ $desc);
+ \(^.* \)\(.*\)\( ::.*\)/\1<a>\2<\/a>\3
?>
<tr>
<td><?=$rs["items"][$i]["pubDate"]?></td>
<td>debian-med</td>
- <td><?=html_entity_decode($rs["items"][$i]["description"])?></td>
+ s/\(^.* \)\(.*\)\( ::.*\)/\1<a>\2<\/a>\3/g
+ <td><?=$desc?></td>
<td><a href="<?=$rs["items"][$i]["link"]?>">»</a></td>
</tr>
<?php
More information about the debian-med-commit
mailing list