mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
doc: Render chapter tab titles human readable
This commit is contained in:
parent
3ecf390a4b
commit
48cd99aba3
@ -46,10 +46,15 @@ class DocController extends Controller
|
||||
->setImageUrl($imageUrl)
|
||||
->setUrl($url)
|
||||
->setUrlParams($urlParams);
|
||||
$this->view->title = $chapter;
|
||||
$first = null;
|
||||
foreach ($section as $first) {
|
||||
break;
|
||||
}
|
||||
$title = $first === null ? ucfirst($chapter) : $first->getTitle();
|
||||
$this->view->title = $title;
|
||||
$this->getTabs()->add('toc', array(
|
||||
'active' => true,
|
||||
'title' => ucfirst($chapter),
|
||||
'title' => $title,
|
||||
'url' => Url::fromRequest()
|
||||
));
|
||||
$this->render('chapter', null, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user