[aur-dev] [PATCH] pkgreq_results.php: Hide empty table
Lukas Fleischer
lfleischer at archlinux.org
Sat Feb 25 12:09:53 UTC 2017
Display a message that no requests matched the filter criteria instead
of showing an empty package requests table.
Signed-off-by: Lukas Fleischer <lfleischer at 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
More information about the aur-dev
mailing list