public PartialViewResult Comments(string workspace, string collection, int? year, int? month, int? day, string path)
    {
      FeedModel model = new FeedModel();
      model.Feed = AnnotateService.GetAnnotations(EntryId, true, 0, int.MaxValue);

      return PartialView("BlogCommentsWidget", model);
    }
 public PartialViewResult FullFeed(string widgetName, Include include)
 {
   var i = new FeedInclude(include);
   if (!i.Count.HasValue) i.Count = int.MaxValue;
   FeedModel model = new FeedModel() { Feed = GetFeed(i, false) };
   return PartialView(widgetName, model);
 }
 public PartialViewResult SizeAnnotations(string widgetName, Include include)
 {
   var i = new FeedInclude(include);
   if (!i.Count.HasValue) i.Count = 6;
   FeedModel model = new FeedModel() { Feed = GetFeed(i, true) };
   return PartialView(widgetName, model);
 }
    //[ActionOutputCache(60 * SEC, true)]
    public virtual ActionResult Listing(string workspace, string collection, int? page)
    {
      FeedModel model = new FeedModel();
      model.Feed = AtomPubService.GetFeed(Collection.Id, (page ?? 1) - 1, Collection.PageSize);
      var links = model.Feed.Links.ToList();
      links.Merge(new AtomLink()
      {
        Rel = "wlwmanifest",
        Type = "application/wlwmanifest+xml",
        Href = Url.RouteIdUri("BlogWriterManifest", Collection.Id)
      });

      //TODO: use default view

      Url.GetPagingLinks("BlogListing", Collection.Id, null, model.Feed.TotalResults ?? 0,
        (page ?? 1) - 1, Collection.PageSize, "text/html").ToList().ForEach(l => links.Merge(l));
      model.Feed.Links = links;

      return View("BlogListing", model);
    }
 public ActionResult CollectionIndex(string workspace, string collection)
 {
   FeedModel model = new FeedModel();
   model.Feed = AtomPubService.GetFeed(Collection.Id, 0, 10);
   return View("AtomPubIndex", model);
 }
 public ActionResult WorkspaceIndex(string workspace)
 {
   FeedModel model = new FeedModel();
   model.Feed = AtomPubService.GetFeed(workspace, 0, 10);
   return View("AtomPubIndex", model);
 }
 public ActionResult ServiceIndex()
 {
   FeedModel model = new FeedModel();
   model.Feed = AtomPubService.GetFeed(0, 10);
   return View("AtomPubIndex", model);
 }
 private SortableItemMetaData CreateSortable(FeedModel aFeedModel, FeedItem aFeedItem)
 {
     return new SortableItemMetaData() {
         DateTimeStamp = aFeedModel.DateTimeStamp,
         FeedItem = aFeedItem
     };
 }