From 23e9820d4463fc786f719f2aeeffc2a624a39ada Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Thu, 1 Feb 2024 16:34:55 -0800 Subject: [PATCH] Fix TheTheme navbar (#15231) --- .../TheTheme/Views/NavbarUserMenu.cshtml | 8 ++ .../Views/UserNotificationNavbar.cshtml | 74 +++++++++---------- 2 files changed, 44 insertions(+), 38 deletions(-) create mode 100644 src/OrchardCore.Themes/TheTheme/Views/NavbarUserMenu.cshtml diff --git a/src/OrchardCore.Themes/TheTheme/Views/NavbarUserMenu.cshtml b/src/OrchardCore.Themes/TheTheme/Views/NavbarUserMenu.cshtml new file mode 100644 index 00000000000..7783314f8d9 --- /dev/null +++ b/src/OrchardCore.Themes/TheTheme/Views/NavbarUserMenu.cshtml @@ -0,0 +1,8 @@ +@using OrchardCore.DisplayManagement +@using OrchardCore.DisplayManagement.ModelBinding +@using OrchardCore.Users.Models + +@inject IDisplayManager DisplayManager +@inject IUpdateModelAccessor UpdateModelAccessor + +@await DisplayAsync(await DisplayManager.BuildDisplayAsync(UpdateModelAccessor.ModelUpdater, (string)Model.Metadata.DisplayType)) diff --git a/src/OrchardCore.Themes/TheTheme/Views/UserNotificationNavbar.cshtml b/src/OrchardCore.Themes/TheTheme/Views/UserNotificationNavbar.cshtml index d3b01713242..1428d8dd5a9 100644 --- a/src/OrchardCore.Themes/TheTheme/Views/UserNotificationNavbar.cshtml +++ b/src/OrchardCore.Themes/TheTheme/Views/UserNotificationNavbar.cshtml @@ -10,51 +10,49 @@ @model UserNotificationNavbarViewModel
  • + +
  • + } +
  • + @T["Notification Center"] +
  • +