mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Updated TheAdmin theme
- Overrided Menu.cshtml to comply with old css --HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
@model ModuleAddViewModel
|
||||
@using Orchard.Modules.ViewModels
|
||||
@{
|
||||
Style.Require("ModulesAdmin");
|
||||
}
|
||||
|
||||
@{
|
||||
<h1>@Html.TitleForPage(T("Install a Module").ToString())</h1>
|
||||
|
@@ -5,7 +5,11 @@
|
||||
@using Orchard.Utility.Extensions
|
||||
@using Orchard.Modules.Models
|
||||
|
||||
<h1>@Html.TitleForPage(T("Manage Features").ToString()).</h1>
|
||||
@{
|
||||
Style.Require("ModulesAdmin");
|
||||
}
|
||||
|
||||
<h1>@Html.TitleForPage(T("Manage Features").ToString())</h1>
|
||||
@if (Model.Features.Count() > 0) {
|
||||
<ul class="features summary-view">@{
|
||||
var featureGroups = Model.Features.OrderBy(f => f.Descriptor.Category, new DoghouseComparer("Core")).GroupBy(f => f.Descriptor.Category);
|
||||
|
@@ -2,6 +2,11 @@
|
||||
@using Orchard.Modules.Extensions
|
||||
@using Orchard.Mvc.Html
|
||||
@using Orchard.Modules.ViewModels
|
||||
|
||||
@{
|
||||
Style.Require("ModulesAdmin");
|
||||
}
|
||||
|
||||
<h1>@Html.TitleForPage(T("Installed Modules").ToString())</h1>
|
||||
<div class="manage">@Html.ActionLink(T("Install a module").ToString(), "Add", null, new { @class = "button primaryAction" })</div>
|
||||
@if (Model.Modules.Count() > 0) {
|
||||
|
@@ -24,7 +24,7 @@
|
||||
<col id="Edit" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<th scope="col"> ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
|
||||
<th scope="col"> ↓@/*todo: (heskew) something more appropriate for "this applies to the bulk actions*/</th>
|
||||
<th scope="col">@T("Name")</th>
|
||||
<th scope="col"></th>
|
||||
</thead>
|
||||
|
@@ -140,7 +140,7 @@
|
||||
<Content Include="Themes\TheAdmin\Styles\images\tableHeaderBackgroundRed.gif" />
|
||||
<Content Include="Themes\TheAdmin\Styles\site.css" />
|
||||
<Content Include="Themes\TheAdmin\Theme.txt" />
|
||||
<Content Include="Themes\TheAdmin\Views\Layout.ascx" />
|
||||
<None Include="Themes\TheAdmin\Views\Layout.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Config\Sample.Host.config" />
|
||||
@@ -311,8 +311,8 @@
|
||||
<Content Include="Themes\TheAdmin\Styles\images\orchardLogo.gif" />
|
||||
<Content Include="Themes\TheAdmin\Theme.png" />
|
||||
<None Include="Themes\TheAdmin\Views\DumpShapeTable.cshtml" />
|
||||
<Content Include="Themes\TheAdmin\Views\User.ascx" />
|
||||
<Content Include="Themes\TheAdmin\Views\Header.ascx" />
|
||||
<None Include="Themes\TheAdmin\Views\User.cshtml" />
|
||||
<None Include="Themes\TheAdmin\Views\Header.cshtml" />
|
||||
<Content Include="Themes\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@@ -1,3 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
|
||||
<div id="app"><%: Html.ActionLink(T("Project Orchard").ToString(), "Index", new { Area = "", Controller = "Home" })%></div>
|
||||
<div id="site"><%: Html.ActionLink(T("Your Site").ToString(), "Index", new { Area = "", Controller = "Home" })%></div>
|
3
src/Orchard.Web/Themes/TheAdmin/Views/Header.cshtml
Normal file
3
src/Orchard.Web/Themes/TheAdmin/Views/Header.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
@model dynamic
|
||||
<div id="app">@Html.ActionLink(T("Project Orchard").ToString(), "Index", new { Area = "", Controller = "Home" })</div>
|
||||
<div id="site">@Html.ActionLink(T("Your Site").ToString(), "Index", new { Area = "", Controller = "Home" })</div>
|
@@ -1,44 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
|
||||
<%@ Import Namespace="Orchard.Security" %>
|
||||
<%@ Import Namespace="Orchard.DisplayManagement.Descriptors" %>
|
||||
<%@ Import Namespace="Orchard.UI.Resources" %>
|
||||
<%@ Import Namespace="Orchard" %>
|
||||
<%@ Import Namespace="Orchard.ContentManagement" %>
|
||||
<%
|
||||
Style.Require("TheAdmin");
|
||||
Script.Require("TheAdmin");
|
||||
RegisterLink(new LinkEntry { Condition = "lte IE 8", Rel = "stylesheet", Type = "text/css", Href = ResolveUrl("../Styles/ie.css") }.AddAttribute("media", "screen, projection"));
|
||||
RegisterLink(new LinkEntry { Condition = "lte IE 6", Rel = "stylesheet", Type = "text/css", Href = ResolveUrl("../Styles/ie6.css") }.AddAttribute("media", "screen, projection"));
|
||||
// these are just hacked together to fire existing partials... can change
|
||||
Model.Header.Add(Display.Header());
|
||||
|
||||
// <experimentation>
|
||||
var thisUser = Html.Resolve<IAuthenticationService>().GetAuthenticatedUser();
|
||||
Model.Header.Add(Display.User(CurrentUser: thisUser), "after");
|
||||
|
||||
// </experimentation>
|
||||
|
||||
|
||||
// these are just hacked together to fire existing partials... can change
|
||||
|
||||
//Model.Zones.AddRenderPartial("header", "Header", Model);
|
||||
//Model.Zones.AddRenderPartial("header:after", "User", Model); // todo: (heskew) should be a user display or widget
|
||||
%>
|
||||
<div id="header" role="banner">
|
||||
<%: Display(Model.Header) %></div>
|
||||
<div id="content">
|
||||
<div id="navshortcut">
|
||||
<a href="#Menu-admin">
|
||||
<%: T("Skip to navigation") %></a></div>
|
||||
<div id="messages">
|
||||
<%: Display(Model.Messages) %>
|
||||
</div>
|
||||
<div id="main" role="main">
|
||||
<%: Display(Model.Content) %></div>
|
||||
<div id="menu">
|
||||
<%: Display(Model.Navigation) %></div>
|
||||
</div>
|
||||
<div id="footer" role="contentinfo">
|
||||
<%: Display(Model.Footer) %></div>
|
||||
|
||||
<%: Display.DumpShapeTable() %>
|
42
src/Orchard.Web/Themes/TheAdmin/Views/Layout.cshtml
Normal file
42
src/Orchard.Web/Themes/TheAdmin/Views/Layout.cshtml
Normal file
@@ -0,0 +1,42 @@
|
||||
@model dynamic
|
||||
@using Orchard.Security
|
||||
@using Orchard.DisplayManagement.Descriptors
|
||||
@using Orchard.UI.Resources
|
||||
@using Orchard
|
||||
@using Orchard.ContentManagement
|
||||
|
||||
@{
|
||||
Style.Require("TheAdmin");
|
||||
Script.Require("TheAdmin");
|
||||
RegisterLink(new LinkEntry { Condition = "lte IE 8", Rel = "stylesheet", Type = "text/css", Href = Url.Content("../Styles/ie.css") }.AddAttribute("media", "screen, projection"));
|
||||
RegisterLink(new LinkEntry { Condition = "lte IE 6", Rel = "stylesheet", Type = "text/css", Href = Url.Content("../Styles/ie6.css") }.AddAttribute("media", "screen, projection"));
|
||||
// these are just hacked together to fire existing partials... can change
|
||||
Model.Header.Add(Display.Header());
|
||||
|
||||
// experimentation
|
||||
var thisUser = Html.Resolve<IAuthenticationService>().GetAuthenticatedUser();
|
||||
Model.Header.Add(Display.User(CurrentUser: thisUser), "after");
|
||||
|
||||
// these are just hacked together to fire existing partials... can change
|
||||
|
||||
//Model.Zones.AddRenderPartial("header", "Header", Model);
|
||||
//Model.Zones.AddRenderPartial("header:after", "User", Model); // todo: (heskew) should be a user display or widget
|
||||
}
|
||||
<div id="header" role="banner">
|
||||
@Display(Model.Header)</div>
|
||||
<div id="content">
|
||||
<div id="navshortcut">
|
||||
<a href="#Menu-admin">
|
||||
@T("Skip to navigation")</a></div>
|
||||
<div id="messages">
|
||||
@Display(Model.Messages)
|
||||
</div>
|
||||
<div id="main" role="main">
|
||||
@Display(Model.Content)</div>
|
||||
<div id="menu">
|
||||
@Display(Model.Navigation)</div>
|
||||
</div>
|
||||
<div id="footer" role="contentinfo">
|
||||
@Display(Model.Footer)</div>
|
||||
|
||||
@Display.DumpShapeTable()
|
14
src/Orchard.Web/Themes/TheAdmin/Views/Menu.cshtml
Normal file
14
src/Orchard.Web/Themes/TheAdmin/Views/Menu.cshtml
Normal file
@@ -0,0 +1,14 @@
|
||||
<ul id="navigation">
|
||||
@foreach(var firstLevelMenuItem in Model) {
|
||||
<li>
|
||||
<h3><a href="#">@firstLevelMenuItem.Text</a></h3>
|
||||
<ul class="menuItems">
|
||||
@foreach(var secondLevelMenuItem in firstLevelMenuItem) {
|
||||
<li>
|
||||
<a href="@secondLevelMenuItem.Href">@secondLevelMenuItem.Text</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
@@ -1,4 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
|
||||
<% if (Model.CurrentUser != null) {
|
||||
%><div id="login"><%: T("User:")%> <%: Model.CurrentUser.UserName %> | <%: Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account" }) %></div><%
|
||||
} %>
|
2
src/Orchard.Web/Themes/TheAdmin/Views/User.cshtml
Normal file
2
src/Orchard.Web/Themes/TheAdmin/Views/User.cshtml
Normal file
@@ -0,0 +1,2 @@
|
||||
@model dynamic
|
||||
@if (Model.CurrentUser != null) {<div id="login">@T("User:") @Model.CurrentUser.UserName | @Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account" })</div>}
|
Reference in New Issue
Block a user