mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00

- Styles being inherited correctly down to the "New" section's sub items. - Menu using the TextHint for generating class names instead of the menu text for predictability across localized sites. --HG-- branch : dev
19 lines
715 B
C#
19 lines
715 B
C#
using Orchard.Localization;
|
|
using Orchard.Security;
|
|
using Orchard.UI.Navigation;
|
|
|
|
namespace Orchard.Core.Dashboard {
|
|
public class AdminMenu : INavigationProvider {
|
|
public Localizer T { get; set; }
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
|
builder.AddImageSet("dashboard")
|
|
.Add(T("Dashboard"), "-5",
|
|
menu => menu.Add(T("Orchard"), "-5",
|
|
item => item
|
|
.Action("Index", "Admin", new { area = "Dashboard" })
|
|
.Permission(StandardPermissions.AccessAdminPanel)));
|
|
}
|
|
}
|
|
} |