diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-10 08:45:23 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-10 08:45:23 +0000 |
commit | b5e9ac38472170a10f16887e3d56a891606d1745 (patch) | |
tree | 41b41fbf1ed80d57f67273c749afd9d676c70e4c | |
parent | 0ea3566adec452d3204017e9c50e8557a32201a9 (diff) | |
download | pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar.gz pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar.bz2 pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.tar.xz pkgsubmit-b5e9ac38472170a10f16887e3d56a891606d1745.zip |
explicit link to changes
-rw-r--r-- | style.css | 6 | ||||
-rw-r--r-- | test_index.php | 7 |
2 files changed, 9 insertions, 4 deletions
@@ -35,10 +35,12 @@ tr.building td.status-box { background: yellow; } tr.partial td.status-box { background: blue; } tr .media, -tr .timeinfo { display: block; font-size: 85%; text-align: left; } +tr .timeinfo, +tr .revision { display: block; font-size: 85%; text-align: left; } td .media, -td .timeinfo { color: #444444; } +td .timeinfo, +td .revision a { color: #777777; text-decoration: none; } .number, .percent { text-align: right; } 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'], |