mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
A little cleanup of the BodyPartDriver
--HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
@@ -9,7 +8,6 @@ using Orchard.ContentManagement.Drivers;
|
|||||||
using Orchard.Core.Common.Models;
|
using Orchard.Core.Common.Models;
|
||||||
using Orchard.Core.Common.Settings;
|
using Orchard.Core.Common.Settings;
|
||||||
using Orchard.Core.Common.ViewModels;
|
using Orchard.Core.Common.ViewModels;
|
||||||
using Orchard.Core.ContentsLocation.Models;
|
|
||||||
using Orchard.Core.Routable.Models;
|
using Orchard.Core.Routable.Models;
|
||||||
using Orchard.Services;
|
using Orchard.Services;
|
||||||
|
|
||||||
@@ -49,10 +47,6 @@ namespace Orchard.Core.Common.Drivers {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string IfThen(bool predicate, string value) {
|
|
||||||
return predicate ? value : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override DriverResult Editor(BodyPart part, dynamic shapeHelper) {
|
protected override DriverResult Editor(BodyPart part, dynamic shapeHelper) {
|
||||||
var model = BuildEditorViewModel(part);
|
var model = BuildEditorViewModel(part);
|
||||||
return ContentShape("Parts_Common_Body_Edit",
|
return ContentShape("Parts_Common_Body_Edit",
|
||||||
|
Reference in New Issue
Block a user