mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
- Finished moving display and editor templates from views/models to views/shared
- Fixed a bug where the template name for model editor template on update wasn't set correctly --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044291
This commit is contained in:
@@ -127,23 +127,23 @@
|
||||
<Content Include="Settings\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Common\Views\Models\DisplayTemplates\BodyAspect.ascx" />
|
||||
<Content Include="Common\Views\Models\EditorTemplates\BodyAspect.ascx" />
|
||||
<Content Include="Settings\Views\Admin\EditorTemplates\SettingsIndexViewModel.ascx" />
|
||||
<Content Include="XmlRpc\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Common\Views\Models\EditorTemplates\OwnerEditorViewModel.ascx" />
|
||||
<Content Include="Common\Views\Web.config" />
|
||||
<Content Include="Themes\Package.txt" />
|
||||
<Content Include="Themes\Views\Admin\Index.aspx" />
|
||||
<Content Include="Themes\Views\Models\EditorTemplates\ThemeSiteSettingsRecord.ascx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Common\Views\Shared\DisplayTemplates\BodyAspect.ascx" />
|
||||
<Content Include="Common\Views\Shared\EditorTemplates\BodyAspect.ascx" />
|
||||
<Content Include="Common\Views\Shared\EditorTemplates\OwnerEditorViewModel.ascx" />
|
||||
<Content Include="Themes\Styles\site.css" />
|
||||
<Content Include="Themes\Theme.txt" />
|
||||
<Content Include="Themes\Views\Admin\Install.aspx" />
|
||||
<Content Include="Themes\Views\Shared\document.aspx" />
|
||||
<Content Include="Themes\Views\Shared\EditorTemplates\ThemeSiteSettingsRecord.ascx" />
|
||||
<Content Include="Themes\Views\Shared\layout.ascx" />
|
||||
<Content Include="Themes\Views\Shared\user.ascx" />
|
||||
<Content Include="Themes\Views\Shared\menu.ascx" />
|
||||
|
@@ -89,9 +89,9 @@
|
||||
<Content Include="Views\Admin\Edit.aspx" />
|
||||
<Content Include="Views\Admin\Index.aspx" />
|
||||
<Content Include="Views\Admin\Create.aspx" />
|
||||
<Content Include="Views\Models\DisplayTemplates\HasComments.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\CommentSettingsRecord.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\HasComments.ascx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\HasComments.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\CommentSettingsRecord.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\HasComments.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
|
@@ -75,8 +75,8 @@
|
||||
<Content Include="Views\Content\Details.aspx" />
|
||||
<Content Include="Views\Content\Index.aspx" />
|
||||
<Content Include="Views\Home\Index.aspx" />
|
||||
<Content Include="Views\Models\DisplayTemplates\ShowDebugLink.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\ShowDebugLink.ascx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\ShowDebugLink.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\ShowDebugLink.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
|
@@ -96,7 +96,7 @@
|
||||
<Content Include="Views\Admin\EditMedia.aspx" />
|
||||
<Content Include="Views\Admin\EditProperties.aspx" />
|
||||
<Content Include="Views\Admin\Index.aspx" />
|
||||
<Content Include="Views\Models\EditorTemplates\MediaSettingsRecord.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\MediaSettingsRecord.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Views\Web.config" />
|
||||
|
@@ -82,7 +82,7 @@
|
||||
<Content Include="Views\Admin\Create.aspx" />
|
||||
<Content Include="Views\Admin\Edit.aspx" />
|
||||
<Content Include="Views\Admin\Index.aspx" />
|
||||
<Content Include="Views\Models\EditorTemplates\UserRolesViewModel.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\UserRolesViewModel.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Views\Web.config" />
|
||||
|
@@ -75,15 +75,15 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Package.txt" />
|
||||
<Content Include="Views\Models\DisplayTemplates\ContentItemTitle.ascx" />
|
||||
<Content Include="Views\Models\DisplayTemplates\SandboxPageSummary.ascx" />
|
||||
<Content Include="Views\Models\DisplayTemplates\SandboxPage.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\SandboxPage.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\SandboxSettingsRecord.ascx" />
|
||||
<Content Include="Views\Page\Edit.aspx" />
|
||||
<Content Include="Views\Page\Create.aspx" />
|
||||
<Content Include="Views\Page\Show.aspx" />
|
||||
<Content Include="Views\Page\Index.aspx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\ContentItemTitle.ascx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\SandboxPage.ascx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\SandboxPageSummary.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\SandboxPage.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\SandboxSettingsRecord.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
|
@@ -87,10 +87,10 @@
|
||||
<Content Include="Views\Admin\Search.aspx" />
|
||||
<Content Include="Views\Home\Index.aspx" />
|
||||
<Content Include="Views\Home\Search.aspx" />
|
||||
<Content Include="Views\Models\DisplayTemplates\HasTagsList.ascx" />
|
||||
<Content Include="Views\Models\DisplayTemplates\HasTags.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\HasTags.ascx" />
|
||||
<Content Include="Views\Models\EditorTemplates\TagSettingsRecord.ascx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\HasTags.ascx" />
|
||||
<Content Include="Views\Shared\DisplayTemplates\HasTagsList.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\HasTags.ascx" />
|
||||
<Content Include="Views\Shared\EditorTemplates\TagSettingsRecord.ascx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
|
@@ -120,12 +120,12 @@
|
||||
<Content Include="Scripts\utils\form_utils.js" />
|
||||
<Content Include="Scripts\utils\mctabs.js" />
|
||||
<Content Include="Scripts\utils\validate.js" />
|
||||
<Content Include="Views\Models\EditorTemplates\TinyMceTextEditor.ascx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\Shared\EditorTemplates\TinyMceTextEditor.ascx" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
@@ -64,7 +64,7 @@ namespace Orchard.Models.Driver {
|
||||
_updater(context, (ItemEditorModel<TContent>)context.EditorModel);
|
||||
else
|
||||
_updater(context, new ItemEditorModel<TContent>(context.EditorModel));
|
||||
context.EditorModel.TemplateName = _templateName;
|
||||
context.EditorModel.TemplateName = _templateName + "/Detail";
|
||||
context.EditorModel.Prefix = _prefix;
|
||||
}
|
||||
|
||||
|
@@ -7,15 +7,15 @@ namespace Orchard.UI.ContentCapture {
|
||||
private readonly IContentCapture _contentCapture;
|
||||
|
||||
public ContentCaptureFilter(IContentCapture contentCapture) {
|
||||
_contentCapture = contentCapture;
|
||||
//_contentCapture = contentCapture;
|
||||
}
|
||||
|
||||
public void OnResultExecuting(ResultExecutingContext filterContext) {
|
||||
if (filterContext.Result is ViewResult) {
|
||||
_contentCapture.CaptureStream = filterContext.HttpContext.Response.Filter;
|
||||
filterContext.HttpContext.Response.Filter = _contentCapture as Stream;
|
||||
filterContext.HttpContext.Response.Buffer = false;
|
||||
}
|
||||
//if (filterContext.Result is ViewResult) {
|
||||
// _contentCapture.CaptureStream = filterContext.HttpContext.Response.Filter;
|
||||
// filterContext.HttpContext.Response.Filter = _contentCapture as Stream;
|
||||
// filterContext.HttpContext.Response.Buffer = false;
|
||||
//}
|
||||
}
|
||||
|
||||
public void OnResultExecuted(ResultExecutedContext filterContext) {
|
||||
|
Reference in New Issue
Block a user