public TimelineShortcut GetTimelineShortcut(Timeline timeline)
{
var ts = new TimelineShortcut()
{
Title = timeline.Title
};
if (timeline.Collection.Title == "Beta Content")
{
ts.TimelineUrl = String.Format("/#{0}", GetContentPath(timeline.Collection.Id, timeline.Id, null));
ts.Author = "Chronozoom";
}
else
{
ts.TimelineUrl = String.Format("/{0}/{1}/#{2}", timeline.Collection.SuperCollection.Title, timeline.Collection.Title, GetContentPath(timeline.Collection.Id, timeline.Id, null));
ts.Author = timeline.Collection.User != null ? timeline.Collection.User.DisplayName : "";
}
ts.ImageUrl = GetTimelineImageUrl(timeline);
return ts;
}