Merge pull request #20 from Martimiz/master-update-121112

Styling 404 and selecting toplevel pages without children
This commit is contained in:
Will Rossiter 2012-11-12 21:05:55 -08:00
commit 0eadf2d174
2 changed files with 5 additions and 1 deletions

View File

@ -573,6 +573,9 @@ class DocumentationViewer extends Controller {
return $children;
}
} else {
if ($page->getRelativeLink() == $this->Remaining[$level]) {
$page->LinkingMode = 'current';
}
}

View File

@ -5,6 +5,7 @@
<% base_tag %>
<meta charset="utf-8" />
<title>SilverStripe Documentation</title>
<% require css(docsviewer/css/DocumentationViewer.css) %>
</head>
<body>