Adding admin menu icons for navigation, media, modules, tags, themes, users and widgets.
--HG-- branch : dev
@@ -8,10 +8,11 @@ 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" })
|
||||
.Permission(Permissions.ManageMainMenu)));
|
||||
builder.AddImageSet("navigation")
|
||||
.Add(T("Navigation"), "8",
|
||||
menu => menu
|
||||
.Add(T("Main Menu"), "0", item => item.Action("Index", "Admin", new { area = "Navigation" })
|
||||
.Permission(Permissions.ManageMainMenu)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
21
src/Orchard.Web/Core/Navigation/Styles/Web.config
Normal 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>
|
After Width: | Height: | Size: 211 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-navigation {
|
||||
background-image:url(images/menu.navigation.png) !important;
|
||||
}
|
||||
.navicon-navigation:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -250,6 +250,8 @@
|
||||
<Content Include="Common\Views\Body.Editor.cshtml" />
|
||||
<Content Include="Contents\Module.txt" />
|
||||
<Content Include="Contents\Views\Admin\CreatableTypeList.cshtml" />
|
||||
<Content Include="Navigation\Styles\images\menu.navigation.png" />
|
||||
<Content Include="Navigation\Styles\menu.navigation.css" />
|
||||
<Content Include="Reports\Module.txt" />
|
||||
<Content Include="Reports\Views\Admin\Display.cshtml" />
|
||||
<Content Include="Reports\Views\Admin\Index.cshtml" />
|
||||
@@ -390,6 +392,11 @@
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Navigation\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.
|
||||
|
@@ -98,6 +98,8 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Styles\images\menu.comments.png" />
|
||||
<Content Include="Styles\menu.comments.css" />
|
||||
<Content Include="Styles\orchard-comments-admin.css" />
|
||||
<Content Include="Views\Admin\Details.cshtml" />
|
||||
<Content Include="Views\Web.config" />
|
||||
|
@@ -12,9 +12,10 @@ namespace Orchard.Media {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Media"), "6",
|
||||
menu => menu.Add(T("Media"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Media" })
|
||||
.Permission(Permissions.ManageMedia)));
|
||||
builder.AddImageSet("media")
|
||||
.Add(T("Media"), "6",
|
||||
menu => menu.Add(T("Media"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Media" })
|
||||
.Permission(Permissions.ManageMedia)));
|
||||
}
|
||||
}
|
||||
}
|
@@ -81,6 +81,8 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Content\Admin\images\folder.gif" />
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Styles\images\menu.media.png" />
|
||||
<Content Include="Styles\menu.media.css" />
|
||||
<Content Include="Styles\orchard-media-admin.css" />
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Views\Web.config" />
|
||||
|
After Width: | Height: | Size: 237 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-media {
|
||||
background-image:url(images/menu.media.png) !important;
|
||||
}
|
||||
.navicon-media:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -9,11 +9,12 @@ namespace Orchard.Modules {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Modules"), "20", menu => menu
|
||||
.Add(T("Installed"), "1", item => item.Action("Index", "Admin", new { area = "Orchard.Modules" })
|
||||
.Permission(StandardPermissions.SiteOwner).LocalNav())
|
||||
.Add(T("Features"), "0", item => item.Action("Features", "Admin", new { area = "Orchard.Modules" })
|
||||
.Permission(Permissions.ManageFeatures).LocalNav()));
|
||||
builder.AddImageSet("modules")
|
||||
.Add(T("Modules"), "20", menu => menu
|
||||
.Add(T("Installed"), "1", item => item.Action("Index", "Admin", new { area = "Orchard.Modules" })
|
||||
.Permission(StandardPermissions.SiteOwner).LocalNav())
|
||||
.Add(T("Features"), "0", item => item.Action("Features", "Admin", new { area = "Orchard.Modules" })
|
||||
.Permission(Permissions.ManageFeatures).LocalNav()));
|
||||
}
|
||||
}
|
||||
}
|
@@ -68,6 +68,8 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Styles\images\menu.modules.png" />
|
||||
<Content Include="Styles\menu.modules.css" />
|
||||
<Content Include="Views\Admin\Index.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
After Width: | Height: | Size: 220 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-modules {
|
||||
background-image:url(images/menu.modules.png) !important;
|
||||
}
|
||||
.navicon-modules:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -7,9 +7,10 @@ namespace Orchard.Tags {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Tags"), "20",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Tags" })
|
||||
.Permission(Permissions.ManageTags)));
|
||||
builder.AddImageSet("tags")
|
||||
.Add(T("Tags"), "20",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Tags" })
|
||||
.Permission(Permissions.ManageTags)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -78,6 +78,8 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Styles\images\menu.tags.png" />
|
||||
<Content Include="Styles\menu.tags.css" />
|
||||
<Content Include="Styles\orchard-tags-admin.css" />
|
||||
<Content Include="Views\Web.config" />
|
||||
<Content Include="Views\Admin\Edit.cshtml" />
|
||||
|
BIN
src/Orchard.Web/Modules/Orchard.Tags/Styles/images/menu.tags.png
Normal file
After Width: | Height: | Size: 249 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-tags {
|
||||
background-image:url(images/menu.tags.png) !important;
|
||||
}
|
||||
.navicon-tags:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -7,8 +7,9 @@ namespace Orchard.Themes {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Themes"), "25", menu => menu
|
||||
.Add(T("Installed"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Themes" }).Permission(Permissions.ApplyTheme).LocalNav()));
|
||||
builder.AddImageSet("themes")
|
||||
.Add(T("Themes"), "25", menu => menu
|
||||
.Add(T("Installed"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Themes" }).Permission(Permissions.ApplyTheme).LocalNav()));
|
||||
}
|
||||
}
|
||||
}
|
@@ -72,6 +72,8 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Content\orchard.ico" />
|
||||
<Content Include="Styles\images\menu.themes.png" />
|
||||
<Content Include="Styles\menu.themes.css" />
|
||||
<Content Include="Styles\orchard-themes-admin.css" />
|
||||
<Content Include="Views\Admin\Index.cshtml" />
|
||||
<Content Include="Views\ThemePreview.cshtml" />
|
||||
|
After Width: | Height: | Size: 227 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-themes {
|
||||
background-image:url(images/menu.themes.png) !important;
|
||||
}
|
||||
.navicon-themes:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -8,9 +8,10 @@ namespace Orchard.Users {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Users"), "40",
|
||||
menu => menu.Add(T("Users"), "1.0", item => item.Action("Index", "Admin", new { area = "Orchard.Users" })
|
||||
.Permission(StandardPermissions.SiteOwner)));
|
||||
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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -83,6 +83,8 @@
|
||||
<Content Include="Content\Admin\images\offline.gif" />
|
||||
<Content Include="Content\Admin\images\online.gif" />
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Styles\images\menu.users.png" />
|
||||
<Content Include="Styles\menu.users.css" />
|
||||
<Content Include="Views\Account\ChangePassword.cshtml" />
|
||||
<Content Include="Views\Account\ChangePasswordSuccess.cshtml" />
|
||||
<Content Include="Views\Account\AccessDenied.cshtml" />
|
||||
@@ -133,6 +135,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.
|
||||
|
21
src/Orchard.Web/Modules/Orchard.Users/Styles/Web.config
Normal 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>
|
After Width: | Height: | Size: 222 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-users {
|
||||
background-image:url(images/menu.users.png) !important;
|
||||
}
|
||||
.navicon-users:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -7,9 +7,10 @@ namespace Orchard.Widgets {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Widgets"), "4",
|
||||
menu => menu.Add(T("Configure"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Widgets" })
|
||||
.Permission(Permissions.ManageWidgets)));
|
||||
builder.AddImageSet("widgets")
|
||||
.Add(T("Widgets"), "4",
|
||||
menu => menu.Add(T("Configure"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Widgets" })
|
||||
.Permission(Permissions.ManageWidgets)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -76,6 +76,8 @@
|
||||
<Content Include="Content\Admin\images\moveup.gif" />
|
||||
<Content Include="Content\Admin\images\movedown.gif" />
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Styles\images\menu.widgets.png" />
|
||||
<Content Include="Styles\menu.widgets.css" />
|
||||
<Content Include="Styles\orchard-widgets-admin.css" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
|
After Width: | Height: | Size: 211 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-widgets {
|
||||
background-image:url(images/menu.widgets.png) !important;
|
||||
}
|
||||
.navicon-widgets:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
Before Width: | Height: | Size: 1.0 KiB |