doc/lib: Use CSS classes controls and content in the view scripts

This commit is contained in:
Eric Lippmann 2015-02-11 13:58:55 +01:00
parent e26154e88a
commit 16d388f4e3
4 changed files with 29 additions and 17 deletions

View File

@ -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 ?> <?= /** @type \Icinga\Module\Doc\SectionRenderer $section */ $section ?>
</div> </div>

View File

@ -1,6 +1,9 @@
<div class="controls"></div> <div class="controls"></div>
<h1><?= $this->translate('Available documentations'); ?></h1> <?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
<ul> <h1><?= $this->translate('Available documentations') ?></h1>
<li><a href="<?= $this->href('doc/icingaweb/toc'); ?>">Icinga Web 2</a></li> <div class="content">
<li><a href="<?= $this->href('doc/module/'); ?>"><?= $this->translate('Module documentations'); ?></a></li> <ul>
</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>

View File

@ -1,10 +1,15 @@
<h1><?= $this->translate('Module documentations'); ?></h1> <div class="controls">
<ul> <?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
<h1><?= $this->translate('Module documentations') ?></h1>
</div>
<div class="content">
<ul>
<?php foreach ($modules as $module): ?> <?php foreach ($modules as $module): ?>
<li> <li>
<a href="<?= $this->getHelper('Url')->url(array('moduleName' => $module), 'doc/module/toc', false, false); ?>"> <a href="<?= $this->getHelper('Url')->url(array('moduleName' => $module), 'doc/module/toc', false, false) ?>">
<?= $module ?> <?= $module ?>
</a> </a>
</li> </li>
<?php endforeach ?> <?php endforeach ?>
</ul> </ul>
</div>

View File

@ -1,6 +1,7 @@
<div class="controls"> <div class="controls">
<?= /** @type \Icinga\Web\Widget\Tabs $tabs */ $tabs->showOnlyCloseButton() ?>
<h1><?= /** @type string $title */ $title ?></h1> <h1><?= /** @type string $title */ $title ?></h1>
</div> </div>
<div class="content toc"> <div class="content">
<?= /** @type \Icinga\Module\Doc\TocRenderer $toc */ $toc ?> <?= /** @type \Icinga\Module\Doc\TocRenderer $toc */ $toc ?>
</div> </div>