[aur-dev] [PATCH 2/2] pkg_search_results.php: Mark out-of-date packages

Lukas Fleischer archlinux at cryptocrack.de
Sun Oct 14 09:01:38 EDT 2012


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 at cryptocrack.de>
---
 web/template/pkg_search_results.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>
-- 
1.7.12.2



More information about the aur-dev mailing list