2016-11-05 23:15:07 +08:00
|
|
|
@model IEnumerable<Menu>
|
|
|
|
<ul class="sub">
|
|
|
|
@foreach (var menu in Model)
|
|
|
|
{
|
|
|
|
<li class="sub-menu">
|
2016-11-12 18:22:48 +08:00
|
|
|
<a href="@Url.Content(menu.Url)" class="@menu.Active"><i class="@menu.Icon"></i>@menu.Name</a>
|
2016-11-05 23:15:07 +08:00
|
|
|
@if (menu.Menus.Count() > 0)
|
|
|
|
{
|
|
|
|
@Html.Partial("SubNavigation", menu.Menus)
|
|
|
|
}
|
|
|
|
</li>
|
|
|
|
}
|
|
|
|
</ul>
|