Files
Orchard/src/Orchard.Web/Themes/TheThemeMachine/Views/MenuItem.cshtml_
T
2010-10-07 15:07:01 -07:00

17 lines
396 B
Plaintext

@{
// odd formatting in this file is to cause more attractive results in the output.
var items = (IEnumerable<dynamic>)Enumerable.Cast<dynamic>(Model);
}
@{
if (HasText(Model.Text)) {
@DisplayChildren(Model)
} else {
<li><a href="@Model.Href">@Model.Text</a>
@if (items.Any()) {
<ul>
@DisplayChildren(Model)
</ul>
}
</li>
}
}