mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Some work on letting modules be responsible for their own piece of the menu (wrt menu item icons & style)
--HG-- branch : dev
This commit is contained in:
@@ -8,8 +8,11 @@ namespace Orchard.Core.Dashboard {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Dashboard"), "-5",
|
||||
menu => menu.Add(T("Orchard"), "-5", item => item.Action("Index", "Admin", new { area = "Dashboard" })
|
||||
builder.AddImageSet("dashboard.menu")
|
||||
.Add(T("Dashboard"), "-5",
|
||||
menu => menu.Add(T("Orchard"), "-5",
|
||||
item => item
|
||||
.Action("Index", "Admin", new { area = "Dashboard" })
|
||||
.Permission(StandardPermissions.AccessAdminPanel)));
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +0,0 @@
|
||||
#menu .menu-admin .section-dashboard h3 a {
|
||||
background-image:url(images/menu-dashboard.png);
|
||||
background-position:0 5px;
|
||||
}
|
||||
#menu .menu-admin .section-dashboard h3 a:hover {
|
||||
background-position:0 -16px;
|
||||
}
|
7
src/Orchard.Web/Core/Dashboard/styles/dashboard.menu.css
Normal file
7
src/Orchard.Web/Core/Dashboard/styles/dashboard.menu.css
Normal file
@@ -0,0 +1,7 @@
|
||||
.navicon-dashboard {
|
||||
background-image:url(images/dashboard.menu.png) !important;
|
||||
background-position:0 2px !important;
|
||||
}
|
||||
.navicon-dashboard:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -9,7 +9,8 @@ namespace Orchard.Core.Navigation {
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
//todo: - add new menu? and list menus? ...and remove hard-coded menu name here
|
||||
builder.Add(T("Navigation"), "8",
|
||||
menu => menu.Add(T("Main Menu"), "0", item => item.Action("Index", "Admin", new { area = "Navigation" })
|
||||
menu => menu
|
||||
.Add(T("Main Menu"), "0", item => item.Action("Index", "Admin", new { area = "Navigation" })
|
||||
.Permission(Permissions.ManageMainMenu)));
|
||||
}
|
||||
}
|
||||
|
@@ -239,6 +239,8 @@
|
||||
<Content Include="Contents\Views\Admin\Create.cshtml" />
|
||||
<Content Include="Contents\Views\Admin\Edit.cshtml" />
|
||||
<Content Include="Contents\Views\Admin\List.cshtml" />
|
||||
<Content Include="Dashboard\styles\dashboard.menu.css" />
|
||||
<Content Include="Dashboard\styles\images\dashboard.menu.png" />
|
||||
<Content Include="Feeds\Views\Feed.cshtml" />
|
||||
<Content Include="Contents\Views\Parts.Contents.Publish.cshtml" />
|
||||
<Content Include="Contents\Views\Parts.Contents.Publish.SummaryAdmin.cshtml" />
|
||||
@@ -378,6 +380,9 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Shapes\Views\LocalMenuItem.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Dashboard\styles\Web.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
Reference in New Issue
Block a user