mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
19 lines
784 B
C#
19 lines
784 B
C#
using Orchard.Localization;
|
|
using Orchard.UI.Navigation;
|
|
|
|
namespace Orchard.Layouts {
|
|
public class AdminMenu : INavigationProvider {
|
|
|
|
public Localizer T { get; set; }
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
|
builder
|
|
.AddImageSet("layouts")
|
|
.Add(T("Layouts"), "8.5", layouts => layouts
|
|
.Action("List", "Admin", new {id = "Layout", area = "Contents"}).Permission(Permissions.ManageLayouts)
|
|
.LinkToFirstChild(false)
|
|
.Add(T("Elements"), "1", elements => elements.Action("Index", "BlueprintAdmin", new {area = "Orchard.Layouts"}).Permission(Permissions.ManageLayouts)));
|
|
}
|
|
}
|
|
} |