mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 00:49:49 +08:00
16 lines
621 B
C#
16 lines
621 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.Add(T("Dashboard"), "-5",
|
|
menu => menu.Add(T("Orchard"), "-5", item => item.Action("Index", "Admin", new { area = "Dashboard" })
|
|
.Permission(StandardPermissions.AccessAdminPanel)));
|
|
}
|
|
}
|
|
} |