Admin menu icons configured for page, list(s), comments, blog content plus an updated dashboard icon (8 bit)

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2011-02-21 13:40:32 -08:00
parent 79b1a288b3
commit f5d35ca3ae
19 changed files with 103 additions and 7 deletions

View File

@@ -21,7 +21,8 @@ namespace Orchard.Core.Contents {
public void GetNavigation(NavigationBuilder builder) {
var contentTypeDefinitions = _contentDefinitionManager.ListTypeDefinitions().OrderBy(d => d.Name);
builder.Add(T("Content"), "2",
builder.AddImageSet("content")
.Add(T("Content"), "2",
menu => menu.Add(T("Content Items"), "1", item => item.Action("List", "Admin", new {area = "Contents", id = ""})));
var contentTypes = contentTypeDefinitions.Where(ctd => ctd.Settings.GetModel<ContentTypeSettings>().Creatable).OrderBy(ctd => ctd.DisplayName);

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: 236 B

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 229 B

View File

@@ -236,6 +236,7 @@
<Content Include="Common\Views\Parts.Common.Metadata.cshtml" />
<Content Include="Common\Views\Parts.Common.Metadata.SummaryAdmin.cshtml" />
<Content Include="Containers\Module.txt" />
<Content Include="Contents\Styles\menu.content.css" />
<Content Include="Contents\Views\Admin\Create.cshtml" />
<Content Include="Contents\Views\Admin\Edit.cshtml" />
<Content Include="Contents\Views\Admin\List.cshtml" />
@@ -317,6 +318,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
<Folder Include="Contents\Styles\images\" />
</ItemGroup>
<ItemGroup>
<Content Include="Contents\Views\Web.config" />
@@ -383,6 +385,11 @@
<ItemGroup>
<Content Include="Dashboard\styles\Web.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Contents\Styles\Web.config">
<SubType>Designer</SubType>
</Content>
</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

@@ -16,7 +16,8 @@ namespace Orchard.Blogs {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Blogs"), "2.5", BuildMenu);
builder.AddImageSet("blog")
.Add(T("Blog"), "1.5", BuildMenu);
}
private void BuildMenu(NavigationItemBuilder menu) {

View File

@@ -107,6 +107,8 @@
<Content Include="Content\Admin\images\scheduled.gif" />
<Content Include="Module.txt" />
<Content Include="Scripts\orchard-blogs-archives.js" />
<Content Include="Styles\images\menu.blog.png" />
<Content Include="Styles\menu.blog.css" />
<Content Include="Styles\orchard-blogs-admin.css" />
<Content Include="Styles\orchard-blogs-archives.css" />
<Content Include="Views\BlogAdmin\Create.cshtml" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

View File

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

View File

@@ -8,7 +8,8 @@ namespace Orchard.Comments {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Comments"), "2.75",
builder.AddImageSet("comments")
.Add(T("Comments"), "3.5",
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Comments" })
.Permission(Permissions.ManageComments)));
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

View File

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

View File

@@ -16,7 +16,8 @@ namespace Orchard.Lists {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Lists"), "3", BuildMenu);
builder.AddImageSet("list")
.Add(T("Lists"), "3", BuildMenu);
}
private void BuildMenu(NavigationItemBuilder menu) {

View File

@@ -64,6 +64,8 @@
<Compile Include="Migrations.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Styles\images\menu.list.png" />
<Content Include="Styles\menu.list.css" />
<Content Include="Views\Items\Content-List.SummaryAdmin.cshtml" />
</ItemGroup>
<ItemGroup>
@@ -72,6 +74,11 @@
<ItemGroup>
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Styles\Web.config">
<SubType>Designer</SubType>
</Content>
</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: 242 B

View File

@@ -0,0 +1,16 @@
.navicon-list,
.navicon-lists {
background-image:url(images/menu.list.png) !important;
}
.navicon-list:hover,
.navicon-lists:hover {
background-position:0 -30px !important;
}
/* subnav */
ul ul .navicon-list {
background-position:0 6px !important;
padding-left:16px !important;
}
ul ul .navicon-list:hover {
background-position:0 -26px !important;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 240 B