[med-svn] r527 - trunk/community/website
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Tue Oct 2 15:23:21 UTC 2007
Author: hanska-guest
Date: 2007-10-02 15:23:21 +0000 (Tue, 02 Oct 2007)
New Revision: 527
Modified:
trunk/community/website/index.php
Log:
Moving columns
Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php 2007-10-02 15:16:47 UTC (rev 526)
+++ trunk/community/website/index.php 2007-10-02 15:23:21 UTC (rev 527)
@@ -56,7 +56,7 @@
<table>
<tr>
<th>date</th>
- <th>project</th>
+ <th>author</th>
<th>content</th>
<th>link</th>
</tr>
@@ -70,13 +70,15 @@
// 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("/(Commit by.*)<strong>(.*)<\/strong>/",
- "\\1<strong><a href=\"http://alioth.debian.org/users/\\2\">\\2</a></strong>",
- $desc);
+ preg_match("/(Commit by.*)<strong>(.*)<\/strong>/", $desc, $matches);
+ $author = $matches[1];
+ $desc = preg_replace("/(Commit by.*)<strong>(.*)<\/strong>.*::/", "", $desc);
+// "\\1<strong><a href=\"http://alioth.debian.org/users/\\2\">\\2</a></strong>",
+// $desc);
?>
<tr>
<td><?=$rs["items"][$i]["pubDate"]?></td>
- <td>debian-med</td>
+ <td><a href="http://alioth.debian.org/users/<?=$author?>"><?=$author?></a></td>
<td><?=$desc?></td>
<td><a href="<?=$rs["items"][$i]["link"]?>">»</a></td>
</tr>
More information about the debian-med-commit
mailing list