diff --git a/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs b/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs index 234e787fa..2de1b3c75 100644 --- a/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs +++ b/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs @@ -45,11 +45,13 @@ namespace Orchard.Tests.Commands { var builder = new CommandHandlerDescriptorBuilder(); var descriptor = builder.Build(typeof(PublicMethodsOnly)); Assert.That(descriptor, Is.Not.Null); - Assert.That(descriptor.Commands.Count(), Is.EqualTo(3)); + Assert.That(descriptor.Commands.Count(), Is.EqualTo(1)); Assert.That(descriptor.Commands.Single(d => d.Name == "Method"), Is.Not.Null); } +#pragma warning disable 660,661 public class PublicMethodsOnly { +#pragma warning restore 660,661 public bool Bar { get; set; } // no accessors public bool Field = true; // no field @@ -70,14 +72,6 @@ namespace Orchard.Tests.Commands { return false; } - public override int GetHashCode() { - throw new NotImplementedException(); - } - - public override bool Equals(Object obj) { - throw new NotImplementedException(); - } - public void Method() { } } diff --git a/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs b/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs index 060054c92..51216e8c1 100644 --- a/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs +++ b/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs @@ -42,8 +42,9 @@ namespace Orchard.Core.Localization.Drivers { ContentLocalizations = new ContentLocalizationsViewModel(part) { Localizations = localizations } }; - // TODO: andrerod convert to new shape API. Location code kept for reference. - return ContentPartTemplate(model, "Parts/Localization.Translation", TemplatePrefix); //.Location(part.GetLocation("Editor")); + return ContentShape("Parts_Localization_ContentTranslations_Edit", () => { + return shapeHelper.EditorTemplate(TemplateName: "Parts/Localization.ContentTranslations.Edit", Model: model, Prefix: TemplatePrefix); + }); } protected override DriverResult Editor(LocalizationPart part, IUpdateModel updater, dynamic shapeHelper) { diff --git a/src/Orchard.Web/Core/Localization/Placement.info b/src/Orchard.Web/Core/Localization/Placement.info index 94d16bb1b..882598dd0 100644 --- a/src/Orchard.Web/Core/Localization/Placement.info +++ b/src/Orchard.Web/Core/Localization/Placement.info @@ -1,6 +1,7 @@  + @@ -8,6 +9,6 @@ - + \ No newline at end of file diff --git a/src/Orchard.Web/Core/Localization/Views/EditorTemplates/Parts/Localization.Translation.cshtml b/src/Orchard.Web/Core/Localization/Views/EditorTemplates/Parts/Localization.ContentTranslations.Edit.cshtml similarity index 100% rename from src/Orchard.Web/Core/Localization/Views/EditorTemplates/Parts/Localization.Translation.cshtml rename to src/Orchard.Web/Core/Localization/Views/EditorTemplates/Parts/Localization.ContentTranslations.Edit.cshtml diff --git a/src/Orchard.Web/Core/Orchard.Core.csproj b/src/Orchard.Web/Core/Orchard.Core.csproj index a89816130..e18393e31 100644 --- a/src/Orchard.Web/Core/Orchard.Core.csproj +++ b/src/Orchard.Web/Core/Orchard.Core.csproj @@ -256,7 +256,7 @@ - + diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml index cc1fc43c5..1ae31e8cc 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml @@ -1,4 +1,6 @@ @model Orchard.Packaging.ViewModels.PackagingModulesViewModel +@using System.Linq; + @{ Style.Require("PackagingAdmin"); }

@Html.TitleForPage(T("Browse Gallery - Modules").ToString())

@@ -10,7 +12,7 @@ @@ -23,7 +25,7 @@ @foreach (var item in Model.Modules) {
  • -

    @(item.SyndicationItem.Title == null ? T("(No title)").Text : item.SyndicationItem.Title.Text) - @T("Version: {0}", "1.0")

    +

    @(item.SyndicationItem.Title == null ? T("(No title)").Text : item.SyndicationItem.Title.Text) - @T("Version: {0}", item.SyndicationItem.ElementExtensions.ReadElementExtensions("Version", "http://orchardproject.net").FirstOrDefault() ?? T("N/A").Text)