Indicate that nothing was found in the docs when searching

refs 
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
modules/doc/application/views/scripts/search

View File

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