summaryrefslogtreecommitdiffstats
path: root/test_index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-10 08:45:23 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-10 08:45:23 +0000
commitb5e9ac38472170a10f16887e3d56a891606d1745 (patch)
tree41b41fbf1ed80d57f67273c749afd9d676c70e4c /test_index.php
parent0ea3566adec452d3204017e9c50e8557a32201a9 (diff)
downloadpkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar
pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar.gz
pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar.bz2
pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar.xz
pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.zip
explicit link to changes
Diffstat (limited to 'test_index.php')
-rw-r--r--test_index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/test_index.php b/test_index.php
index 5be4aa3..b3304c3 100644
--- a/test_index.php
+++ b/test_index.php
@@ -192,7 +192,8 @@ if (!is_null($upload_time)) {
$s = '';
$tmpl = <<<T
<tr class="%s">
- <td><a rel="nofollow" href="http://svnweb.mageia.org/packages?view=revision&revision=%d" title="%s" class="package">%s</a></td>
+ <td><a rel="nofollow" href="%s" title="%s" class="package">%s</a>
+ <span class="revision"><a href="%s">view changes @ r%d</a></span></td>
<td><a rel="nofollow" href="?user=%s" class="committer">%s</a>
<span class="timeinfo">%s</span></td>
<td>%s
@@ -205,12 +206,14 @@ if ($total > 0) {
if (trim($p['package']) == '') {
continue;
}
+ $revision_link = sprintf('http://svnweb.mageia.org/packages?view=revision&revision=%d', $p['revision']);
$s .= sprintf($tmpl,
$p['type'],
- $p['revision'],
+ $revision_link,
addslashes($p['summary']),
$p['package'],
+ $revision_link, $p['revision'],
$p['user'], $p['user'],
timediff(key2timestamp($key)) . ' ago',
$p['version'],