[aur-dev] [PATCH] pkgreq_results.php: Hide empty table
25 Feb
2017
25 Feb
'17
12:09 p.m.
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> --- web/template/pkgreq_results.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php index 74fcb10..fb49dfa 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; ?> -- 2.12.0
2887
Age (days ago)
2887
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lukas Fleischer