diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-02-25 13:03:10 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-02-25 13:09:01 +0100 |
commit | b205275196ca60e2809937b651db8d41c77b90ac (patch) | |
tree | 9394b96763c28b9bd14040e1075a3ac7715cbd6e /web/template | |
parent | 29a48708bb7c3e00e80275a6b898f557f63dff69 (diff) | |
download | aur-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/template')
-rw-r--r-- | web/template/pkgreq_results.php | 4 |
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; ?> |