summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-10-14 14:37:57 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-10-14 15:07:25 +0200
commit361e251bb194a698cf06cdc1badfdbad489ec6dc (patch)
tree51c4ab44fb9b5c66de07af6245d64afc89df57bf /web/template
parent360ce61f7a2130caebcc26d0a1caaec7d71b143f (diff)
pkg_search_results.php: Mark out-of-date packages
Highlight the version number of out-of-date packages on the package search results page using the "flagged" class from archweb. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_search_results.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index ea7f61a..16f574a 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -56,7 +56,7 @@ if (!$result): ?>
<?php endif; ?>
<td><?= htmlspecialchars($row["Category"]) ?></td>
<td><a href="<?= htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?= htmlspecialchars($row["Name"]) ?></a></td>
- <td><?= htmlspecialchars($row["Version"]) ?></td>
+ <td<?php if ($row["OutOfDateTS"]): ?> class="flagged"<?php endif; ?>><?= htmlspecialchars($row["Version"]) ?></td>
<td><?= $row["NumVotes"] ?></td>
<?php if ($SID): ?>
<td>