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 <[email protected]>
---
 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

Reply via email to