Commit c7fc7856 by Eva Gächter

Adds active class to navigation

parent 3fdcd13d
......@@ -11,9 +11,9 @@
@if(root != null) {
@if(root.getSubPages.nonEmpty) {
@Template.filterPermitted(root.getSubPages).map { subPage =>
<!-- TODO: ADD ACTIVE CLASS, INCLUDE SUBMENU AS DROPDOWN -->
<!-- TODO: INCLUDE SUBMENU AS DROPDOWN -->
<li class="nav-item">
<a href="@subPage.getNavItem.getURL" class="nav-link @if(subPage == active){active}">
<a href="@subPage.getNavItem.getURL" class="nav-link @if(subPage.isActive) {active}">
@subPage.getNavTitle
</a>
@_navigation(root = subPage, active = active, level = level+1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment