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;
|
||||
}
|
Reference in New Issue
Block a user