mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-24 03:06:38 +08:00
15 lines
595 B
C#
15 lines
595 B
C#
using Orchard.Localization;
|
|
using Orchard.Security;
|
|
using Orchard.UI.Navigation;
|
|
|
|
namespace Orchard.Core.Reports {
|
|
public class AdminMenu : INavigationProvider {
|
|
public Localizer T { get; set; }
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
|
builder.Add(T("Site Configuration"), "11",
|
|
menu => menu.Add(T("Reports"), "0", item => item.Action("Index", "Admin", new { area = "Reports" }).Permission(StandardPermissions.AccessAdminPanel)));
|
|
}
|
|
}
|
|
} |