summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-02-25 13:03:10 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-25 13:09:01 +0100
commitb205275196ca60e2809937b651db8d41c77b90ac (patch)
tree9394b96763c28b9bd14040e1075a3ac7715cbd6e /web
parent29a48708bb7c3e00e80275a6b898f557f63dff69 (diff)
downloadaur-b205275196ca60e2809937b651db8d41c77b90ac.tar.gz
aur-b205275196ca60e2809937b651db8d41c77b90ac.tar.xz
pkgreq_results.php: Hide empty table
Display a message that no requests matched the filter criteria instead of showing an empty package requests table. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkgreq_results.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php
index 74fcb10d..fb49dfae 100644
--- a/web/template/pkgreq_results.php
+++ b/web/template/pkgreq_results.php
@@ -1,3 +1,6 @@
+<?php if (count($results) == 0): ?>
+<p><?= __("No requests matched your search criteria.") ?></p>
+<?php else: ?>
<?php if ($show_headers): ?>
<div class="pkglist-stats">
<p>
@@ -129,3 +132,4 @@
<?php endif; ?>
</div>
<?php endif; ?>
+<?php endif; ?>