Gitlab upgraded to version 11.11.2 this weekend (16.06.2019). Please notify any issue in the #sysadmin room, full rollback still possible (but canceling any change made since the snapshot taken this Sunday). Cheers & have nice start of week! --Olivier

Commit 0f6a72f3 authored by Eva Gächter's avatar Eva Gächter

optimized structure for navigation dropdowns

parent 6bb271ea
......@@ -14,18 +14,21 @@
@_navigation(item, level + 1)
} else {
<li class="nav-item">
<div class="btn-group">
<a href="@item.getNavItem.getURL" class="nav-link @if(item.isActive){active}">
@item.getNavTitle
</a>
@if(item.getSubPages.nonEmpty && level == 1) {
<span class="btn dropdown-toggle dropdown-toggle-split" id="navDropdown@item.getId" data-toggle="dropdown"></span>
<div class="dropdown-menu" aria-labelledby="navDropdown@item.getId">
@_navigation(item, level + 1)
</div>
}
</div>
@if(item.getSubPages.nonEmpty && level == 1) {
<div class="btn-group">
<a href="@item.getNavItem.getURL" class="btn btn-link nav-link" style="margin-top:-1px;">@item.getNavTitle</a>
<button type="button" class="btn btn-link dropdown-toggle dropdown-toggle-split nav-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
@_navigation(item, level + 1)
</div>
</div>
} else {
<a href="@item.getNavItem.getURL" class="nav-link @if(item.isActive){active}">
@item.getNavTitle
</a>
}
</li>
}
}}
\ No newline at end of file
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