2010-06-04 06:47:35 +08:00
|
|
|
|
using Orchard.Localization;
|
|
|
|
|
using Orchard.Security;
|
2010-03-01 18:26:12 +08:00
|
|
|
|
using Orchard.UI.Navigation;
|
|
|
|
|
|
|
|
|
|
namespace Orchard.Core.Dashboard {
|
|
|
|
|
public class AdminMenu : INavigationProvider {
|
2010-06-04 06:47:35 +08:00
|
|
|
|
public Localizer T { get; set; }
|
2010-03-01 18:26:12 +08:00
|
|
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
|
|
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
2010-11-10 06:03:41 +08:00
|
|
|
|
builder.Add(T("Dashboard"), "-5",
|
|
|
|
|
menu => menu.Add(T("Orchard"), "-5", item => item.Action("Index", "Admin", new { area = "Dashboard" })
|
2010-11-02 06:57:20 +08:00
|
|
|
|
.Permission(StandardPermissions.AccessAdminPanel)));
|
2010-03-01 18:26:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|