Skip to content

Commit

Permalink
Hide navigation toggle if no subpages exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Mar 30, 2014
1 parent a57cbc3 commit 84c7b73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Private/Partials/Page/Navigation/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
<f:link.page pageUid="{rootPage}" class="navbar-brand">{siteTitle}</f:link.page>
</f:else>
</f:if>
<f:if condition="{f:cObject(typoscriptObjectPath:'lib.navigation.main')}">
<button type="button" class="navbar-toggle navbar-toggle-menu" data-toggle="collapse" data-target=".navbar-collapse">
<span class="glyphicon glyphicon-list"></span>
<span class="sr-only">Toggle navigation</span>
</button>
</f:if>
<span class="navbar-header-border-bottom"></span>
</div>
<div class="navbar-collapse collapse">
Expand Down

0 comments on commit 84c7b73

Please sign in to comment.