mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Flatten "Settings" and "Navigation"
--HG-- branch : dev rename : src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts/Navigation.Menu.Edit.cshtml => src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml rename : src/Orchard.Web/Core/Settings/Views/EditorTemplates/Parts/Settings.SiteSettingsPart.cshtml => src/Orchard.Web/Core/Settings/Views/EditorTemplates/Parts.Settings.SiteSettingsPart.cshtml
This commit is contained in:
parent
1087a05494
commit
a0e8404fe4
@ -28,7 +28,7 @@ namespace Orchard.Core.Navigation.Drivers {
|
||||
return null;
|
||||
|
||||
return ContentShape("Parts_Navigation_Menu_Edit",
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Navigation.Menu.Edit", Model: part, Prefix: Prefix));
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts.Navigation.Menu.Edit", Model: part, Prefix: Prefix));
|
||||
}
|
||||
|
||||
protected override DriverResult Editor(MenuPart part, IUpdateModel updater, dynamic shapeHelper) {
|
||||
|
@ -279,7 +279,7 @@
|
||||
<Content Include="Shapes\Views\Message.cshtml" />
|
||||
<Content Include="Shapes\Views\NotFound.cshtml" />
|
||||
<Content Include="XmlRpc\Module.txt" />
|
||||
<Content Include="Settings\Views\EditorTemplates\Parts\Settings.SiteSettingsPart.cshtml" />
|
||||
<Content Include="Settings\Views\EditorTemplates\Parts.Settings.SiteSettingsPart.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Orchard\Orchard.Framework.csproj">
|
||||
@ -306,7 +306,7 @@
|
||||
<Content Include="Dashboard\Views\Admin\Index.cshtml" />
|
||||
<Content Include="HomePage\Module.txt" />
|
||||
<Content Include="Navigation\Views\Admin\Index.cshtml" />
|
||||
<Content Include="Navigation\Views\EditorTemplates\Parts\Navigation.Menu.Edit.cshtml" />
|
||||
<Content Include="Navigation\Views\EditorTemplates\Parts.Navigation.Menu.Edit.cshtml" />
|
||||
<Content Include="Navigation\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -40,7 +40,7 @@ namespace Orchard.Core.Settings.Drivers {
|
||||
};
|
||||
|
||||
return ContentShape("Parts_Settings_SiteSettingsPart",
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Settings.SiteSettingsPart", Model: model, Prefix: Prefix));
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts.Settings.SiteSettingsPart", Model: model, Prefix: Prefix));
|
||||
}
|
||||
|
||||
protected override DriverResult Editor(SiteSettingsPart part, IUpdateModel updater, dynamic shapeHelper) {
|
||||
@ -65,7 +65,7 @@ namespace Orchard.Core.Settings.Drivers {
|
||||
}
|
||||
|
||||
return ContentShape("Parts_Settings_SiteSettingsPart",
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Settings.SiteSettingsPart", Model: model, Prefix: Prefix));
|
||||
() => shapeHelper.EditorTemplate(TemplateName: "Parts.Settings.SiteSettingsPart", Model: model, Prefix: Prefix));
|
||||
}
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ namespace Orchard.Environment {
|
||||
_stopping = false;
|
||||
var timer = new Timer();
|
||||
timer.Elapsed += CompileViews;
|
||||
timer.Interval = TimeSpan.FromMilliseconds(100).TotalMilliseconds;
|
||||
timer.Interval = TimeSpan.FromMilliseconds(1500).TotalMilliseconds;
|
||||
timer.AutoReset = false;
|
||||
timer.Start();
|
||||
}
|
||||
@ -45,7 +45,7 @@ namespace Orchard.Environment {
|
||||
}
|
||||
|
||||
private void CompileViews(object sender, ElapsedEventArgs elapsedEventArgs) {
|
||||
Stopwatch totalTime = new Stopwatch();
|
||||
var totalTime = new Stopwatch();
|
||||
totalTime.Start();
|
||||
Logger.Information("Starting background compilation of views");
|
||||
((Timer)sender).Stop();
|
||||
@ -59,24 +59,28 @@ namespace Orchard.Environment {
|
||||
"~/Themes/SafeMode/Views",
|
||||
|
||||
// Homepage
|
||||
"~/Themes/TheThemeMachine/Views",
|
||||
"~/Core/Common/Views",
|
||||
"~/Core/Contents/Views",
|
||||
"~/Core/Routable/Views",
|
||||
"~/Core/Contents/Views",
|
||||
"~/Core/Common/Views",
|
||||
"~/Core/Settings/Views",
|
||||
"~/Core/Shapes/Views",
|
||||
"~/Core/Feeds/Views",
|
||||
"~/Modules/Orchard.Tags/Views",
|
||||
"~/Modules/Orchard.Widgets/Views",
|
||||
|
||||
// Dashboard
|
||||
"~/Core/Dashboard/Views",
|
||||
"~/Themes/TheAdmin/Views",
|
||||
|
||||
// Content Items
|
||||
"~/Modules/Orchard.PublishLater/Views",
|
||||
|
||||
// Content Types
|
||||
"~/Modules/Orchard.ContentTypes/Views",
|
||||
|
||||
// "Edit" homepage
|
||||
"~/Modules/TinyMce/Views",
|
||||
"~/Modules/Orchard.Tags/Views",
|
||||
"~/Core/Navigation/Views",
|
||||
|
||||
// Various other admin pages
|
||||
"~/Core/Settings/Views",
|
||||
"~/Modules/Orchard.Modules/Views",
|
||||
"~/Modules/Orchard.Users/Views",
|
||||
"~/Modules/Orchard.Media/Views",
|
||||
|
Loading…
Reference in New Issue
Block a user