Doc: Add tabs where missing
This commit is contained in:
parent
cbfaee8681
commit
3e543808c1
|
@ -4,6 +4,7 @@
|
||||||
namespace Icinga\Module\Doc\Controllers;
|
namespace Icinga\Module\Doc\Controllers;
|
||||||
|
|
||||||
use Icinga\Module\Doc\DocController;
|
use Icinga\Module\Doc\DocController;
|
||||||
|
use Icinga\Web\Url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Documentation module index
|
* Documentation module index
|
||||||
|
@ -17,5 +18,10 @@ class IndexController extends DocController
|
||||||
*/
|
*/
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
|
$this->getTabs()->add('documentation', array(
|
||||||
|
'active' => true,
|
||||||
|
'title' => $this->translate('Documentation', 'Tab title'),
|
||||||
|
'url' => Url::fromRequest()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ namespace Icinga\Module\Doc\Controllers;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Module\Doc\DocController;
|
use Icinga\Module\Doc\DocController;
|
||||||
use Icinga\Module\Doc\Exception\DocException;
|
use Icinga\Module\Doc\Exception\DocException;
|
||||||
|
use Icinga\Web\Url;
|
||||||
|
|
||||||
class ModuleController extends DocController
|
class ModuleController extends DocController
|
||||||
{
|
{
|
||||||
|
@ -53,6 +54,12 @@ class ModuleController extends DocController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->view->modules = $modules;
|
$this->view->modules = $modules;
|
||||||
|
$this->getTabs()->add('module-documentation', array(
|
||||||
|
'active' => true,
|
||||||
|
'title' => $this->translate('Module Documentation', 'Tab title'),
|
||||||
|
'url' => Url::fromRequest()
|
||||||
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
'doc/icingaweb/toc',
|
'doc/icingaweb/toc',
|
||||||
null,
|
null,
|
||||||
array('title' => $this->translate('Show the documentation\'s table of contents for Icinga Web 2'))
|
array('title' => $this->translate('Show the documentation\'s table of contents for Icinga Web 2'))
|
||||||
); ?></li>
|
) ?></li>
|
||||||
<li><?= $this->qlink(
|
<li><?= $this->qlink(
|
||||||
$this->translate('Module documentations'),
|
$this->translate('Module documentations'),
|
||||||
'doc/module/',
|
'doc/module/',
|
||||||
null,
|
null,
|
||||||
array('title' => $this->translate('List all modules for which documentation is available'))
|
array('title' => $this->translate('List all modules for which documentation is available'))
|
||||||
); ?></li>
|
) ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<h1><?= $this->translate('Module documentations'); ?></h1>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -14,7 +13,7 @@
|
||||||
$this->translate('Show the documentation\'s table of contents for the %s'),
|
$this->translate('Show the documentation\'s table of contents for the %s'),
|
||||||
$module->getTitle()
|
$module->getTitle()
|
||||||
))
|
))
|
||||||
); ?></li>
|
) ?></li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue