summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-10-14 14:34:28 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-10-14 15:07:22 +0200
commit360ce61f7a2130caebcc26d0a1caaec7d71b143f (patch)
tree6efdcd2fa1f75347dcf8bebfd8a12a99af6796d1
parent8ee6888f1d477d9df97b0ffb36a78136399e9562 (diff)
downloadaurweb-360ce61f7a2130caebcc26d0a1caaec7d71b143f.tar.xz
pkg_search_results.php: Move version to a separate column
Synchronize the column layout with archweb. This also allows for easily highlighting the version number of out-of-date packages. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/template/pkg_search_results.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index 0053607..ea7f61a 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -37,6 +37,7 @@ if (!$result): ?>
<?php endif; ?>
<th><a href="?<?= mkurl('SB=c&SO=' . $SO_next) ?>"><?= __("Category") ?></a></th>
<th><a href="?<?= mkurl('SB=n&SO=' . $SO_next) ?>"><?= __("Name") ?></a></th>
+ <th><?= __("Version") ?></th>
<th><a href="?<?= mkurl('SB=v&SO=' . $SO_next) ?>"><?= __("Votes") ?></a></th>
<?php if ($SID): ?>
<th><a href="?<?= mkurl('SB=w&SO=' . $SO_next) ?>"><?= __("Voted") ?></a></th>
@@ -54,7 +55,8 @@ if (!$result): ?>
<td><input type="checkbox" name="IDs[<?= $row["ID"] ?>]" value="1" /></td>
<?php endif; ?>
<td><?= htmlspecialchars($row["Category"]) ?></td>
- <td><a href="<?= htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?= htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td>
+ <td><a href="<?= htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?= htmlspecialchars($row["Name"]) ?></a></td>
+ <td><?= htmlspecialchars($row["Version"]) ?></td>
<td><?= $row["NumVotes"] ?></td>
<?php if ($SID): ?>
<td>