Merge branch 'bugfix/indicate-that-nothing-was-found-in-the-docs-when-searching-8847'
fixes #8847
This commit is contained in:
commit
34992c2841
|
@ -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 ?>
|
||||
<h2><?= $this->escape($title) ?></h2>
|
||||
<?= $search->isEmpty()
|
||||
? $this->translate('No documentation found matching the filter')
|
||||
: $search ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue