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) {
|
2011-02-21 12:16:31 -08:00
|
|
|
|
builder.AddImageSet("dashboard")
|
2011-02-18 15:31:52 -08:00
|
|
|
|
.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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|