Files
Orchard/src/Orchard.Web/Core/Dashboard/AdminMenu.cs
Nathan Heskew daae401ac4 Adding a Dashboard module to support a (initially) simple Admin Dashboard
- Added Dashboard module to Orchard.Core
- Updated "Admin" link in User partials to point to the Admin Dashboard (and consolidated partials)
- Changed the admin menu to not hardcode the Dashboard item in the template. Instead all items come from admin menu item registration (hence the weird "Manage Orchard" sub-item)

--HG--
branch : dev
2010-03-01 02:26:12 -08:00

13 lines
519 B
C#

using Orchard.Security;
using Orchard.UI.Navigation;
namespace Orchard.Core.Dashboard {
public class AdminMenu : INavigationProvider {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add("Dashboard", "0",
menu => menu.Add("Manage Orchard", "0", item => item.Action("Index", "Admin", new { area = "Dashboard" }).Permission(StandardPermissions.AccessAdminPanel)));
}
}
}