Adding admin menu icons for experimental and settings

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2011-02-23 20:55:02 -08:00
parent 2a4b7f1cd2
commit 8873882ad2
8 changed files with 42 additions and 2 deletions

View File

@@ -8,8 +8,9 @@ namespace Orchard.Experimental {
public Localizer T { get; set; }
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Experimental"), "60",
menu => menu.Add(T("Debug"), "0", item => item.Action("Index", "Home", new { area = "Orchard.Experimental" })));
builder.AddImageSet("experimental")
.Add(T("Experimental"), "60",
menu => menu.Add(T("Debug"), "0", item => item.Action("Index", "Home", new { area = "Orchard.Experimental" })));
}
}
}

View File

@@ -75,6 +75,8 @@
</ItemGroup>
<ItemGroup>
<Content Include="Module.txt" />
<Content Include="Styles\images\menu.experimental.png" />
<Content Include="Styles\menu.experimental.css" />
<Content Include="Views\Commands\Execute.cshtml" />
<Content Include="Views\Content\Details.cshtml" />
<Content Include="Views\Content\Index.cshtml" />
@@ -111,6 +113,9 @@
<ItemGroup>
<Content Include="web.config" />
</ItemGroup>
<ItemGroup>
<Content Include="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.

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<add key="webpages:Enabled" value="false" />
</appSettings>
<system.web>
<httpHandlers>
<!-- iis6 - for any request in this location, return via managed static file handler -->
<add path="*" verb="*" type="System.Web.StaticFileHandler" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers accessPolicy="Script,Read">
<!--
iis7 - for any request to a file exists on disk, return it via native http module.
accessPolicy 'Script' is to allow for a managed 404 page.
-->
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
</handlers>
</system.webServer>
</configuration>

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

View File

@@ -0,0 +1,6 @@
.navicon-experimental {
background-image:url(images/menu.experimental.png) !important;
}
.navicon-experimental:hover {
background-position:0 -30px !important;
}