mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Flatten "Core/Common/Views" folder
--HG-- branch : dev rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Fields/Common.Text.Edit.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Fields.Common.Text.Edit.cshtml rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Body.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.Body.cshtml rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Container.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.Container.cshtml rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Owner.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.Owner.cshtml rename : src/Orchard.Web/Core/Common/Views/Fields/Common.Text.cshtml => src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Body.Summary.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Body.Summary.cshtml rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Body.SummaryAdmin.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Body.SummaryAdmin.cshtml rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Body.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Body.cshtml rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.Summary.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.Summary.cshtml rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.SummaryAdmin.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.SummaryAdmin.cshtml rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.Summary.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.cshtml
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Orchard.Core.Common.Drivers {
|
||||
public class BodyPartDriver : ContentPartDriver<BodyPart> {
|
||||
private readonly IEnumerable<IHtmlFilter> _htmlFilters;
|
||||
|
||||
private const string TemplateName = "Parts/Common.Body";
|
||||
private const string TemplateName = "Parts.Common.Body";
|
||||
|
||||
public BodyPartDriver(IOrchardServices services, IEnumerable<IHtmlFilter> htmlFilters) {
|
||||
_htmlFilters = htmlFilters;
|
||||
|
@@ -83,7 +83,7 @@ namespace Orchard.Core.Common.Drivers {
|
||||
}
|
||||
|
||||
return ContentShape("Parts_Common_Owner_Edit",
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Common.Owner", Model: model, Prefix: Prefix));
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts.Common.Owner", Model: model, Prefix: Prefix));
|
||||
}
|
||||
|
||||
DriverResult ContainerEditor(CommonPart part, IUpdateModel updater, dynamic shapeHelper) {
|
||||
@@ -112,7 +112,7 @@ namespace Orchard.Core.Common.Drivers {
|
||||
}
|
||||
|
||||
return ContentShape("Parts_Common_Container_Edit",
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Common.Container", Model: model, Prefix: Prefix));
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts.Common.Container", Model: model, Prefix: Prefix));
|
||||
}
|
||||
}
|
||||
}
|
@@ -22,7 +22,7 @@ namespace Orchard.Core.Common.Drivers {
|
||||
|
||||
protected override DriverResult Editor(ContentPart part, TextField field, dynamic shapeHelper) {
|
||||
return ContentShape("Fields_Common_Text_Edit",
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Fields/Common.Text.Edit", Model: field, Prefix: GetPrefix(field, part)));
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Fields.Common.Text.Edit", Model: field, Prefix: GetPrefix(field, part)));
|
||||
}
|
||||
|
||||
protected override DriverResult Editor(ContentPart part, TextField field, IUpdateModel updater, dynamic shapeHelper) {
|
||||
|
@@ -0,0 +1 @@
|
||||
<div class="published">@Display.PublishedState(dateTimeUtc: Model.ContentPart.PublishedUtc)</div>
|
@@ -231,10 +231,10 @@
|
||||
<Content Include="Common\Module.txt" />
|
||||
<Content Include="Common\Views\DefinitionTemplates\BodyTypePartSettings.cshtml" />
|
||||
<Content Include="Common\Views\DefinitionTemplates\BodyPartSettings.cshtml" />
|
||||
<Content Include="Common\Views\Fields\Common.Text.cshtml" />
|
||||
<Content Include="Common\Views\Parts\Common.Body.SummaryAdmin.cshtml" />
|
||||
<Content Include="Common\Views\Parts\Common.Metadata.cshtml" />
|
||||
<Content Include="Common\Views\Parts\Common.Metadata.SummaryAdmin.cshtml" />
|
||||
<Content Include="Common\Views\Fields.Common.Text.cshtml" />
|
||||
<Content Include="Common\Views\Parts.Common.Body.SummaryAdmin.cshtml" />
|
||||
<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\Views\Admin\Create.cshtml" />
|
||||
<Content Include="Contents\Views\Admin\Edit.cshtml" />
|
||||
@@ -242,8 +242,8 @@
|
||||
<Content Include="Feeds\Views\Feed.cshtml" />
|
||||
<Content Include="Contents\Views\Parts\Contents.Publish.cshtml" />
|
||||
<Content Include="Contents\Views\Parts\Contents.Publish.SummaryAdmin.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Fields\Common.Text.Edit.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Parts\Common.Container.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Fields.Common.Text.Edit.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Parts.Common.Container.cshtml" />
|
||||
<Content Include="Common\Views\Body.Editor.cshtml" />
|
||||
<Content Include="Contents\Module.txt" />
|
||||
<Content Include="Contents\Views\Admin\CreatableTypeList.cshtml" />
|
||||
@@ -294,9 +294,9 @@
|
||||
<Content Include="Common\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Common\Views\Parts\Common.Body.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Parts\Common.Body.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Parts\Common.Owner.cshtml" />
|
||||
<Content Include="Common\Views\Parts.Common.Body.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Parts.Common.Body.cshtml" />
|
||||
<Content Include="Common\Views\EditorTemplates\Parts.Common.Owner.cshtml" />
|
||||
<Content Include="Feeds\Module.txt" />
|
||||
<Content Include="Navigation\Module.txt" />
|
||||
<Content Include="Scheduling\Module.txt" />
|
||||
@@ -310,7 +310,7 @@
|
||||
<Content Include="Navigation\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Common\Views\Parts\Common.Body.Summary.cshtml" />
|
||||
<Content Include="Common\Views\Parts.Common.Body.Summary.cshtml" />
|
||||
<Content Include="Dashboard\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -330,7 +330,7 @@
|
||||
<Content Include="Shapes\Views\MenuItem.cshtml" />
|
||||
<Content Include="Shapes\Views\Web.config" />
|
||||
<Content Include="Common\Placement.info" />
|
||||
<Content Include="Common\Views\Parts\Common.Metadata.Summary.cshtml" />
|
||||
<Content Include="Common\Views\Parts.Common.Metadata.Summary.cshtml" />
|
||||
<Content Include="Contents\Placement.info">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
|
Reference in New Issue
Block a user