2010-06-03 15:47:35 -07:00
|
|
|
|
using Orchard.Localization;
|
|
|
|
|
using Orchard.Security;
|
2010-03-01 02:26:12 -08:00
|
|
|
|
using Orchard.UI.Navigation;
|
|
|
|
|
|
|
|
|
|
namespace Orchard.Core.Dashboard {
|
|
|
|
|
public class AdminMenu : INavigationProvider {
|
2010-06-03 15:47:35 -07:00
|
|
|
|
public Localizer T { get; set; }
|
2010-03-01 02:26:12 -08:00
|
|
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
|
|
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
2010-11-09 14: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-01 15:57:20 -07:00
|
|
|
|
.Permission(StandardPermissions.AccessAdminPanel)));
|
2010-03-01 02:26:12 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|