Adding a couple of spec tests for Blogs and fixint the Blogs.RemotePublishing template

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-16 13:12:38 -08:00
parent 4daba3c13b
commit 4e731d9737
4 changed files with 119 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
using JetBrains.Annotations;
using Orchard.Blogs.Models;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Aspects;
using Orchard.ContentManagement.Drivers;
using Orchard.Environment.Extensions;
@@ -10,7 +8,7 @@ namespace Orchard.Blogs.Drivers {
[OrchardFeature("Orchard.Blogs.RemotePublishing")]
public class RemoteBlogPublishingDriver : ContentPartDriver<BlogPart> {
protected override DriverResult Display(BlogPart part, string displayType, dynamic shapeHelper) {
return ContentShape("Parts_Blogs_RemotePublishing", shape => shape.Path(part.As<IRoutableAspect>().Path));
return ContentShape("Parts_Blogs_RemotePublishing", shape => shape.Blog(part));
}
}
}

View File

@@ -2,7 +2,7 @@
@using Orchard.Blogs.Models;
@using Orchard.UI.Resources;
@{
BlogPart blog = Model;
BlogPart blog = Model.Blog;
RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest(blog) });
RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd(blog) });
}