doc/lib: Use CSS classes controls and content in the view scripts
This commit is contained in:
parent
e26154e88a
commit
16d388f4e3
|
@ -1,3 +1,6 @@
|
|||
<div class="chapter">
|
||||
<div class="controls">
|
||||
<?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
<?= /** @type \Icinga\Module\Doc\SectionRenderer $section */ $section ?>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<div class="controls"></div>
|
||||
<h1><?= $this->translate('Available documentations'); ?></h1>
|
||||
<ul>
|
||||
<li><a href="<?= $this->href('doc/icingaweb/toc'); ?>">Icinga Web 2</a></li>
|
||||
<li><a href="<?= $this->href('doc/module/'); ?>"><?= $this->translate('Module documentations'); ?></a></li>
|
||||
</ul>
|
||||
<?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
|
||||
<h1><?= $this->translate('Available documentations') ?></h1>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<li><a href="<?= $this->href('doc/icingaweb/toc') ?>">Icinga Web 2</a></li>
|
||||
<li><a href="<?= $this->href('doc/module/') ?>"><?= $this->translate('Module documentations') ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
<h1><?= $this->translate('Module documentations'); ?></h1>
|
||||
<ul>
|
||||
<?php foreach ($modules as $module): ?>
|
||||
<li>
|
||||
<a href="<?= $this->getHelper('Url')->url(array('moduleName' => $module), 'doc/module/toc', false, false); ?>">
|
||||
<?= $module ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<div class="controls">
|
||||
<?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
|
||||
<h1><?= $this->translate('Module documentations') ?></h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<?php foreach ($modules as $module): ?>
|
||||
<li>
|
||||
<a href="<?= $this->getHelper('Url')->url(array('moduleName' => $module), 'doc/module/toc', false, false) ?>">
|
||||
<?= $module ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<div class="controls">
|
||||
<?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
|
||||
<h1><?= /** @type string $title */ $title ?></h1>
|
||||
</div>
|
||||
<div class="content toc">
|
||||
<div class="content">
|
||||
<?= /** @type \Icinga\Module\Doc\TocRenderer $toc */ $toc ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue