From ff635952b820df802e1aade1ed3f6e47b6e8461c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 16 Aug 2019 22:04:14 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0SubNavItemLink?= =?UTF-8?q?=E5=85=AC=E7=94=A8=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Shared/SubNavItem.cshtml | 23 ++++++++++--------- .../Views/Shared/SubNavItemLink.cshtml | 6 +++++ 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 Bootstrap.Admin/Views/Shared/SubNavItemLink.cshtml 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) +}