Indicate that nothing was found in the docs when searching

refs #8847
This commit is contained in:
Alexander A. Klimov 2015-06-05 15:37:31 +02:00
parent 5dd3950594
commit 6dedb48444
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<div class="content">
<?php foreach (/** @var \Icinga\Module\Doc\Renderer\DocSearchRenderer[] $searches */ $searches as $title => $search): ?>
<?php if (! $search->isEmpty()): ?>
<h1><?= $this->escape($title) ?></h1>
<?= $search ?>
<?php endif ?>
<h1><?= $this->escape($title) ?></h1>
<?= $search->isEmpty()
? $this->translate('No documentation found matching the filter')
: $search ?>
<?php endforeach ?>
</div>