This commit is contained in:
Dennis Eichhorn 2023-10-09 22:06:38 +00:00
parent 371d861db6
commit 1efa4edce4
3 changed files with 9 additions and 6 deletions

View File

@ -57,8 +57,7 @@ $tableView->setObjects($modules);
++$count;
$url = UriFactory::build(
'{/lang}/backend/help/module/single?id={$module}',
['$module' => $module->getInternalName()]
'{/lang}/backend/help/module/single?id=' . $module->getInternalName()
);
?>
<tr tabindex="0" data-href="<?= $url; ?>">

View File

@ -2,7 +2,11 @@
<div class="col-xs-12 col-md-8 col-lg-9">
<section class="portlet">
<div class="portlet-body">
<?php if (empty($this->data['content'])) : ?>
<img height="100%" width="100%" src="Web/Backend/img/under_construction.svg">
<?php else : ?>
<article><?= $this->data['content']; ?></article>
<?php endif; ?>
</div>
</section>
</div>
@ -12,7 +16,7 @@
<a tabindex="0" class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/lang}/backend/help/module/single?id={?id}'); ?>"><?= $this->getHtml('Module'); ?></a>
</div>
<?php if ($this->hasData('navigation')) : ?>
<?php if (!empty($this->data['navigation'] ?? '')) : ?>
<section class="portlet">
<div class="portlet-body">
<article><?= $this->data['navigation']; ?></article>
@ -20,7 +24,7 @@
</section>
<?php endif; ?>
<?php if ($this->hasData('devNavigation')) : ?>
<?php if (!empty($this->data['devNavigation'] ?? '')) : ?>
<section class="portlet">
<div class="portlet-body">
<article><?= $this->data['devNavigation']; ?></article>

View File

@ -100,6 +100,6 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
$request->setData('search', ':help introduction');
$this->module->searchHelp($request, $response);
self::assertGreaterThan(0, \count($response->get('')));
self::assertGreaterThan(0, \count($response->getData('')));
}
}