mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
Services Overview: Use $query->hasResult() instead of $query->count()
refs #9632
This commit is contained in:
parent
e1b3c42818
commit
028342adfe
@ -18,13 +18,6 @@ if (! $this->compact): ?>
|
|||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php
|
|
||||||
|
|
||||||
if (count($services) === 0) {
|
|
||||||
echo $this->translate('No services found matching the filter') . '</div>';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<table data-base-target="<?= isset($baseTarget) ? $baseTarget : '_next'; ?>"
|
<table data-base-target="<?= isset($baseTarget) ? $baseTarget : '_next'; ?>"
|
||||||
class="action multiselect <?php if ($this->compact): ?> compact<?php endif ?>" style="table-layout: auto;"
|
class="action multiselect <?php if ($this->compact): ?> compact<?php endif ?>" style="table-layout: auto;"
|
||||||
data-icinga-multiselect-url="<?= $this->href("monitoring/services/show") ?>"
|
data-icinga-multiselect-url="<?= $this->href("monitoring/services/show") ?>"
|
||||||
@ -91,4 +84,7 @@ if (count($services) === 0) {
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<?php if (! $services->hasResult()): ?>
|
||||||
|
<?= $this->translate('No services found matching the filter'); ?>
|
||||||
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user