mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Converting/cleaning a few templates in Core.Shapes
--HG-- branch : dev
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
<None Include="Contents\Views\Admin\List.cshtml" />
|
||||
<None Include="Feeds\Views\Feed.cshtml" />
|
||||
<None Include="Localization\Views\EditorTemplates\Parts\Localization.Translation.cshtml" />
|
||||
<Content Include="Contents\Views\DisplayTemplates\Parts\Contents.Publish.ascx" />
|
||||
<None Include="Contents\Views\DisplayTemplates\Parts\Contents.Publish.cshtml" />
|
||||
<None Include="Contents\Views\DisplayTemplates\Parts\Contents.Publish.SummaryAdmin.cshtml" />
|
||||
<Content Include="Messaging\Module.txt" />
|
||||
<None Include="Messaging\Views\EditorTemplates\Parts\Messaging.MessageSettings.cshtml" />
|
||||
@@ -319,12 +319,10 @@
|
||||
<Content Include="Shapes\Styles\Images\toolBarHoverButtonBackground.gif" />
|
||||
<Content Include="Shapes\Styles\jquery.switchable.css" />
|
||||
<Content Include="Shapes\Styles\special.css" />
|
||||
<Content Include="Shapes\Views\DisplayTemplates\Items\ContentItem.ascx" />
|
||||
<Content Include="Shapes\Views\EditorTemplates\Items\ContentItem.ascx" />
|
||||
<None Include="Shapes\Views\HeadPreload.cshtml" />
|
||||
<None Include="Shapes\Views\Message.cshtml" />
|
||||
<None Include="Shapes\Views\NotFound.cshtml" />
|
||||
<Content Include="Shapes\Views\UI\Switchable.ascx" />
|
||||
<None Include="Shapes\Views\UI\Switchable.cshtml" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="XmlRpc\Module.txt" />
|
||||
<None Include="Settings\Views\EditorTemplates\Parts\Settings.SiteSettingsPart.cshtml" />
|
||||
|
@@ -1,5 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<% Html.Zone("primary");
|
||||
Html.ZonesAny(); %>
|
@@ -1,5 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<% Html.Zone("primary");
|
||||
Html.ZonesAny(); %>
|
@@ -1,11 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||
<%@ Import Namespace="Orchard.UI.Resources" %>
|
||||
<%
|
||||
// todo: use Style.Require and Script.Require when this is converted to use a base Orchard view type.
|
||||
var rm = Html.Resolve<IResourceManager>();
|
||||
rm.Require("stylesheet", "Switchable");
|
||||
rm.Require("script", "Switchable");
|
||||
var cssClass = string.Format("{0} switchable", Model);
|
||||
|
||||
%>
|
||||
<%:cssClass %>
|
5
src/Orchard.Web/Core/Shapes/Views/UI/Switchable.cshtml
Normal file
5
src/Orchard.Web/Core/Shapes/Views/UI/Switchable.cshtml
Normal file
@@ -0,0 +1,5 @@
|
||||
@{
|
||||
Style.Require("Switchable");
|
||||
Script.Require("Switchable");
|
||||
}
|
||||
@string.Format("{0} switchable", Model)
|
Reference in New Issue
Block a user