mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
A little admin menu reorg.
--HG-- branch : dev
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Orchard.Core.Navigation {
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
//todo: - add new menu? and list menus? ...and remove hard-coded menu name here
|
||||
builder.AddImageSet("navigation")
|
||||
.Add(T("Navigation"), "8",
|
||||
.Add(T("Navigation"), "6",
|
||||
menu => menu
|
||||
.Add(T("Main Menu"), "0", item => item.Action("Index", "Admin", new { area = "Navigation" })
|
||||
.Permission(Permissions.ManageMainMenu)));
|
||||
|
@@ -263,6 +263,7 @@
|
||||
<Content Include="Routable\Views\EditorTemplates\Parts.Routable.RoutePart.cshtml" />
|
||||
<Content Include="Settings\Module.txt" />
|
||||
<Content Include="Settings\Styles\admin.css" />
|
||||
<Content Include="Settings\Styles\menu.settings.css" />
|
||||
<Content Include="Settings\Views\Admin\Index.cshtml" />
|
||||
<Content Include="Settings\Views\Admin\Culture.cshtml" />
|
||||
<Content Include="Contents\Views\Content.Edit.cshtml" />
|
||||
|
@@ -8,9 +8,10 @@ namespace Orchard.Core.Reports {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Configuration"), "50",
|
||||
menu => menu.Add(T("Reports"), "20", item => item.Action("Index", "Admin", new { area = "Reports" })
|
||||
.Permission(StandardPermissions.AccessAdminPanel)));
|
||||
builder.AddImageSet("reports")
|
||||
.Add(T("Reports"), "50",
|
||||
menu => menu.Add(T("View"), "0", item => item.Action("Index", "Admin", new { area = "Reports" })
|
||||
.Permission(StandardPermissions.AccessAdminPanel)));
|
||||
}
|
||||
}
|
||||
}
|
@@ -19,10 +19,10 @@ namespace Orchard.Core.Settings {
|
||||
public IOrchardServices Services { get; private set; }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Settings"), "50",
|
||||
menu => menu.LinkToFirstChild(false)
|
||||
.Add(T("General"), "0", item => item.Action("Index", "Admin", new { area = "Settings", groupInfoId = "Index" })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
builder.AddImageSet("settings")
|
||||
.Add(T("Settings"), "99",
|
||||
menu => menu.Add(T("General"), "0", item => item.Action("Index", "Admin", new { area = "Settings", groupInfoId = "Index" })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
|
||||
var site = _siteService.GetSiteSettings();
|
||||
if (site == null)
|
||||
@@ -30,7 +30,7 @@ namespace Orchard.Core.Settings {
|
||||
|
||||
foreach (var groupInfo in Services.ContentManager.GetEditorGroupInfos(site.ContentItem)) {
|
||||
GroupInfo info = groupInfo;
|
||||
builder.Add(T("Settings"), "50",
|
||||
builder.Add(T("Settings"),
|
||||
menu => menu.Add(info.Name, info.Position, item => item.Action("Index", "Admin", new { area = "Settings", groupInfoId = info.Id })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
}
|
||||
|
3
src/Orchard.Web/Core/Settings/Styles/menu.settings.css
Normal file
3
src/Orchard.Web/Core/Settings/Styles/menu.settings.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.section-settings {
|
||||
padding:12px 0;
|
||||
}
|
@@ -9,7 +9,7 @@ namespace Orchard.Comments {
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.AddImageSet("comments")
|
||||
.Add(T("Comments"), "3.5",
|
||||
.Add(T("Comments"), "30",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Comments" })
|
||||
.Permission(Permissions.ManageComments)));
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ namespace Orchard.ContentTypes {
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
|
||||
builder.Add(T("Content"), "2",
|
||||
builder.Add(T("Content"),
|
||||
menu => menu.Add(T("Content Types"), "3", item => item.Action("Index", "Admin", new {area = "Orchard.ContentTypes"})));
|
||||
}
|
||||
}
|
||||
|
@@ -8,8 +8,8 @@ namespace Orchard.Experimental {
|
||||
public Localizer T { get; set; }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Configuration"), "50",
|
||||
menu => menu.Add(T("Experimental"), "50", item => item.Action("Index", "Home", new { area = "Orchard.Experimental" })));
|
||||
builder.Add(T("Experimental"), "60",
|
||||
menu => menu.Add(T("Debug"), "0", item => item.Action("Index", "Home", new { area = "Orchard.Experimental" })));
|
||||
}
|
||||
}
|
||||
}
|
@@ -8,9 +8,10 @@ namespace Orchard.Indexing {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Configuration"), "50",
|
||||
menu => menu.Add(T("Search Index"), "15", item => item.Action("Index", "Admin", new {area = "Orchard.Indexing"})
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
builder.AddImageSet("search")
|
||||
.Add(T("Settings"),
|
||||
menu => menu.Add(T("Search"), "15", item => item.Action("Index", "Admin", new {area = "Orchard.Indexing"})
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
}
|
||||
}
|
||||
}
|
@@ -13,7 +13,7 @@ namespace Orchard.Media {
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.AddImageSet("media")
|
||||
.Add(T("Media"), "6",
|
||||
.Add(T("Media"), "8",
|
||||
menu => menu.Add(T("Media"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Media" })
|
||||
.Permission(Permissions.ManageMedia)));
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ namespace Orchard.MultiTenancy {
|
||||
if (_shellSettings.Name != ShellSettings.DefaultName)
|
||||
return;
|
||||
|
||||
builder.Add(T("Tenants"), "100",
|
||||
builder.Add(T("Tenants"), "90",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.MultiTenancy" })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
}
|
||||
|
@@ -8,9 +8,9 @@ namespace Orchard.Roles {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Users"), "40",
|
||||
builder.Add(T("Users"),
|
||||
menu => menu.Add(T("Roles"), "2.0", item => item.Action("Index", "Admin", new { area = "Orchard.Roles" })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
.LocalNav().Permission(StandardPermissions.SiteOwner)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ namespace Orchard.Tags {
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.AddImageSet("tags")
|
||||
.Add(T("Tags"), "20",
|
||||
.Add(T("Tags"), "35",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Tags" })
|
||||
.Permission(Permissions.ManageTags)));
|
||||
}
|
||||
|
@@ -10,8 +10,8 @@ namespace Orchard.Users {
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.AddImageSet("users")
|
||||
.Add(T("Users"), "40",
|
||||
menu => menu.Add(T("Manage Users"), "1.0", item => item.Action("Index", "Admin", new { area = "Orchard.Users" })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
menu => menu.Add(T("Users"), "1.0", item => item.Action("Index", "Admin", new { area = "Orchard.Users" })
|
||||
.LocalNav().Default().Permission(StandardPermissions.SiteOwner)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ namespace Orchard.Widgets {
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.AddImageSet("widgets")
|
||||
.Add(T("Widgets"), "4",
|
||||
.Add(T("Widgets"), "10",
|
||||
menu => menu.Add(T("Configure"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Widgets" })
|
||||
.Permission(Permissions.ManageWidgets)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user