summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/lib/pkgfuncs.inc4
-rw-r--r--web/template/pkg_search_form.php8
2 files changed, 12 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 150f552..5ce659e 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -449,6 +449,10 @@ function pkg_search_page($SID="") {
$q.= "AND MaintainerUID = 0 ";
}
+ if (isset($_GET['outdated'])) {
+ $q .= "AND OutOfDate = 1 ";
+ }
+
$order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC';
switch ($_GET["SB"]) {
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php
index 012b1bd..f5163f3 100644
--- a/web/template/pkg_search_form.php
+++ b/web/template/pkg_search_form.php
@@ -120,6 +120,14 @@
?>
</select>
</li>
+ <li>
+ <label><?php echo __('Out of Date'); ?></label>
+ <?php if (isset($_GET['outdated'])): ?>
+ <input type="checkbox" name="outdated" checked />
+ <?php else: ?>
+ <input type="checkbox" name="outdated" />
+ <?php endif; ?>
+ </li>
</ul>
</div>
<?php endif; ?>