diff --git a/src/Orchard.Tests/DataMigration/Utilities/NullInterpreter.cs b/src/Orchard.Tests/DataMigration/Utilities/NullInterpreter.cs
index a89772b80..025970a55 100644
--- a/src/Orchard.Tests/DataMigration/Utilities/NullInterpreter.cs
+++ b/src/Orchard.Tests/DataMigration/Utilities/NullInterpreter.cs
@@ -24,5 +24,10 @@ namespace Orchard.Tests.DataMigration.Utilities {
public void Visit(DropForeignKeyCommand command) {
}
+
+ public string PrefixTableName(string tableName) {
+ return tableName;
+ }
+
}
}
\ No newline at end of file
diff --git a/src/Orchard.Web/Core/Navigation/Scripts/navigation-admin.js b/src/Orchard.Web/Core/Navigation/Scripts/navigation-admin.js
index 347854cd5..08dc685de 100644
--- a/src/Orchard.Web/Core/Navigation/Scripts/navigation-admin.js
+++ b/src/Orchard.Web/Core/Navigation/Scripts/navigation-admin.js
@@ -42,7 +42,7 @@
// display a message on leave if changes have been made
window.onbeforeunload = function (e) {
- return leaveConfirmation;
+ return $("
").html(leaveConfirmation).text();
};
// cancel leaving message on save
diff --git a/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml b/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml
index bb81da637..2e36751c2 100644
--- a/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml
+++ b/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml
@@ -22,7 +22,7 @@
@if (hasPermission) {
@@ -134,12 +134,12 @@
@using (Script.Foot()) {
}
\ No newline at end of file
diff --git a/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.MenuWidget.Edit.cshtml b/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.MenuWidget.Edit.cshtml
index c505a208b..cb568e8ff 100644
--- a/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.MenuWidget.Edit.cshtml
+++ b/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.MenuWidget.Edit.cshtml
@@ -6,7 +6,7 @@
@Html.LabelFor(m => m.CurrentMenuId, T("For Menu"))
@T("Select which menu you want to display")
diff --git a/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml b/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml
index c81dd1ede..a51394ccc 100644
--- a/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml
+++ b/src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml
@@ -11,7 +11,7 @@
@T("Select which menu you want the content item to be displayed on.")
diff --git a/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/EditorTemplates/Parts.Navigation.Edit.cshtml b/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/EditorTemplates/Parts.Navigation.Edit.cshtml
index 8234426e4..972007790 100644
--- a/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/EditorTemplates/Parts.Navigation.Edit.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.ContentPicker/Views/EditorTemplates/Parts.Navigation.Edit.cshtml
@@ -29,7 +29,7 @@
@T("Select which menu you want the content item to be added on.")
diff --git a/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml b/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml
index b0bae7455..f16f885b1 100644
--- a/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.DynamicForms/Views/Elements/EmailField.Design.cshtml
@@ -5,7 +5,7 @@
var tagBuilder = TagBuilderExtensions.CreateElementTagBuilder(Model, "input");
tagBuilder.AddCssClass("text design");
- tagBuilder.Attributes["type"] = "email";
+ tagBuilder.Attributes["type"] = "text";
tagBuilder.Attributes["value"] = element.Value;
tagBuilder.Attributes["name"] = element.Name;
}
diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Drivers/ProjectionElementDriver.cs b/src/Orchard.Web/Modules/Orchard.Layouts/Drivers/ProjectionElementDriver.cs
index ea0939206..f81f5d971 100644
--- a/src/Orchard.Web/Modules/Orchard.Layouts/Drivers/ProjectionElementDriver.cs
+++ b/src/Orchard.Web/Modules/Orchard.Layouts/Drivers/ProjectionElementDriver.cs
@@ -103,6 +103,9 @@ namespace Orchard.Layouts.Drivers {
// Execute the query.
var contentItems = _projectionManager.GetContentItems(query.Id, pager.GetStartIndex() + element.Skip, pager.PageSize).ToList();
+ context.ElementShape.ContentItems = contentItems;
+ context.ElementShape.BuildShapes = (Func>) (displayType => contentItems.Select(x => _contentManager.BuildDisplay(x, displayType)));
+
// TODO: Figure out if we need this for a Projection Element, and if so, how.
//// Sanity check so that content items with ProjectionPart can't be added here, or it will result in an infinite loop.
//contentItems = contentItems.Where(x => !x.Has()).ToList();
diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Handlers/LayoutPartHandler.cs b/src/Orchard.Web/Modules/Orchard.Layouts/Handlers/LayoutPartHandler.cs
index 565a92e93..04648fb23 100644
--- a/src/Orchard.Web/Modules/Orchard.Layouts/Handlers/LayoutPartHandler.cs
+++ b/src/Orchard.Web/Modules/Orchard.Layouts/Handlers/LayoutPartHandler.cs
@@ -1,5 +1,4 @@
-using Orchard.Caching;
-using Orchard.ContentManagement;
+using Orchard.ContentManagement;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Orchard.DisplayManagement;
diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Orchard.Layouts.csproj b/src/Orchard.Web/Modules/Orchard.Layouts/Orchard.Layouts.csproj
index d6b539d9d..d697e97da 100644
--- a/src/Orchard.Web/Modules/Orchard.Layouts/Orchard.Layouts.csproj
+++ b/src/Orchard.Web/Modules/Orchard.Layouts/Orchard.Layouts.csproj
@@ -24,6 +24,7 @@
+ true
@@ -669,6 +670,9 @@
+
+
+ 10.0$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Services/CurrentControllerAccessor.cs b/src/Orchard.Web/Modules/Orchard.Layouts/Services/CurrentControllerAccessor.cs
index 9ae1abeaa..546a3f8df 100644
--- a/src/Orchard.Web/Modules/Orchard.Layouts/Services/CurrentControllerAccessor.cs
+++ b/src/Orchard.Web/Modules/Orchard.Layouts/Services/CurrentControllerAccessor.cs
@@ -1,16 +1,17 @@
+using System.Web;
using System.Web.Mvc;
using Orchard.Layouts.Filters;
-using Orchard.Mvc;
namespace Orchard.Layouts.Services {
public class CurrentControllerAccessor : ICurrentControllerAccessor {
- private readonly IHttpContextAccessor _httpContextAccessor;
- public CurrentControllerAccessor(IHttpContextAccessor httpContextAccessor) {
- _httpContextAccessor = httpContextAccessor;
+ private readonly HttpContextBase _httpContext;
+
+ public CurrentControllerAccessor(HttpContextBase httpContext) {
+ _httpContext = httpContext;
}
public Controller CurrentController {
- get { return (Controller) _httpContextAccessor.Current().Items[ControllerAccessorFilter.CurrentControllerKey]; }
+ get { return (Controller) _httpContext.Items[ControllerAccessorFilter.CurrentControllerKey]; }
}
}
}
\ No newline at end of file
diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Projection.Design.cshtml b/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Projection.Design.cshtml
new file mode 100644
index 000000000..7919b2d76
--- /dev/null
+++ b/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Projection.Design.cshtml
@@ -0,0 +1,11 @@
+@{
+ var contentShapes = ((Func>)Model.BuildShapes)("Summary").ToList();
+ var list = New.List();
+ list.AddRange(contentShapes);
+}
+@if (contentShapes.Any()) {
+ @Display(list)
+}
+else {
+
@T("The query returned no results.")
+}
\ No newline at end of file
diff --git a/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.js b/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.js
index ad88615d8..7fd4e0ae9 100644
--- a/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.js
+++ b/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.js
@@ -43,7 +43,7 @@
var force = actionLink.data("feature-force");
var dependants = actionLink.data("feature-dependants");
- if (!dependants || /^\s*$/.test(dependants) || confirm(confirmDisableMessage + "\n\n" + dependants)) {
+ if (!dependants || /^\s*$/.test(dependants) || confirm($("").html(confirmDisableMessage + "\n\n" + dependants).text())) {
$("[name='submit.BulkExecute']").val("yes");
$("[name='featureIds']").val(featureId);
diff --git a/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.min.js b/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.min.js
index dc6081236..1b85a1176 100644
--- a/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.min.js
+++ b/src/Orchard.Web/Modules/Orchard.Modules/Scripts/features.admin.min.js
@@ -1,4 +1 @@
-$(function(){var n=function(){var n=$(".bulk-actions-wrapper").addClass("visible"),t=$(".switch-for-switchable");t.prepend(n);$("#search-box").focus().keyup(function(){var n=$(this).val(),t;if(n==""){$("li.category").show();$("li.feature:hidden").show();return}$("li.feature").each(function(){var t=$(this),i=t.find("h3:first").text();i.toLowerCase().indexOf(n.toLowerCase())>=0?t.show():t.hide()});$("li.category:hidden").show();t=$("li.category:not(:has(li.feature:visible))").hide()})},t=function(){$("li.feature h3").on("change","input[type='checkbox']",function(){var n=$(this).is(":checked"),t=$(this).parents("li.feature:first");t.toggleClass("selected",n)})},i=function(){$("li.feature .actions").on("click","a[data-feature-action]",function(n){var t=$(this),r=t.data("feature-id"),u=t.data("feature-action"),f=t.data("feature-force"),i=t.data("feature-dependants");(!i||/^\s*$/.test(i)||confirm(confirmDisableMessage+"\n\n"+i))&&($("[name='submit.BulkExecute']").val("yes"),$("[name='featureIds']").val(r),$("[name='bulkAction']").val(u),$("[name='force']").val(f),t.parents("form:first").submit());n.preventDefault()})};n();t();i()});
-/*
-//# sourceMappingURL=features.admin.min.js.map
-*/
\ No newline at end of file
+$(function(){var n=function(){var n=$(".bulk-actions-wrapper").addClass("visible"),t=$(".switch-for-switchable");t.prepend(n);$("#search-box").keyup(function(){var n=$(this).val(),t;if(n==""){$("li.category").show();$("li.feature:hidden").show();return}$("li.feature").each(function(){var t=$(this),i=t.find("h3:first").text();i.toLowerCase().indexOf(n.toLowerCase())>=0?t.show():t.hide()});$("li.category:hidden").show();t=$("li.category:not(:has(li.feature:visible))").hide()})},t=function(){$("li.feature h3").on("change","input[type='checkbox']",function(){var n=$(this).is(":checked"),t=$(this).parents("li.feature:first");t.toggleClass("selected",n)})},i=function(){$("li.feature .actions").on("click","a[data-feature-action]",function(n){var t=$(this),r=t.data("feature-id"),u=t.data("feature-action"),f=t.data("feature-force"),i=t.data("feature-dependants");(!i||/^\s*$/.test(i)||confirm($("").html(confirmDisableMessage+"\n\n"+i).text()))&&($("[name='submit.BulkExecute']").val("yes"),$("[name='featureIds']").val(r),$("[name='bulkAction']").val(u),$("[name='force']").val(f),t.parents("form:first").submit());n.preventDefault()})};n();t();i()});
\ No newline at end of file
diff --git a/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.cshtml b/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.cshtml
index 36295b52f..ec6da75a3 100644
--- a/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.Modules/Views/Admin/Features.cshtml
@@ -16,29 +16,29 @@
@if (Model.Features.Any()) {
using (Html.BeginFormAntiForgeryPost()) {
- @Html.Hidden("submit.BulkExecute")
- @Html.Hidden("force", true)
- @Html.Hidden("featureIds")
-