mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00

- 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
13 lines
519 B
C#
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)));
|
|
}
|
|
}
|
|
} |