Fixing the admin menu to not have the "New" group collapse if there is only one item in there

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-12-06 11:15:43 -08:00
parent 8a9b41a3be
commit 8a0f68bdcc

View File

@@ -31,7 +31,7 @@
var firstLevelTag = Tag(firstLevelMenuItem, "li");
@firstLevelTag.StartElement
<h3>@sectionHeaderMarkup</h3>
if (secondLevelMenuItems.Count() > 1) {
if (secondLevelMenuItems.Count() > 1 || !firstLevelMenuItem.LinkToFirstChild) {
<ul class="menuItems">
@foreach(var secondLevelMenuItem in secondLevelMenuItems) {
<li>