diff --git a/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml b/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml index e82f1e62..eac3455e 100644 --- a/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml +++ b/Bootstrap.Admin/Views/Shared/SubNavItem.cshtml @@ -1,21 +1,22 @@ @model Bootstrap.Security.BootstrapMenu @if(Model.Menus.Any()) { - + if(@Model.Active == "active") + { + + } + else + { + + } } else { } \ No newline at end of file diff --git a/Bootstrap.Admin/Views/Shared/SubNavItemLink.cshtml b/Bootstrap.Admin/Views/Shared/SubNavItemLink.cshtml new file mode 100644 index 00000000..553e4560 --- /dev/null +++ b/Bootstrap.Admin/Views/Shared/SubNavItemLink.cshtml @@ -0,0 +1,6 @@ +@model Bootstrap.Security.BootstrapMenu +@Model.Name +@if (Model.Menus.Any()) +{ + @await Html.PartialAsync("SubNavigation", Model.Menus) +}