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>
This commit is contained in:
Lukas Fleischer 2017-02-25 13:03:10 +01:00
parent 29a48708bb
commit b205275196

View file

@ -1,3 +1,6 @@
<?php if (count($results) == 0): ?>
<p><?= __("No requests matched your search criteria.") ?></p>
<?php else: ?>
<?php if ($show_headers): ?> <?php if ($show_headers): ?>
<div class="pkglist-stats"> <div class="pkglist-stats">
<p> <p>
@ -129,3 +132,4 @@
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php endif; ?>