public string GetDisgest() { var composer = new HtmlComposer(); composer.AppendImg(Routes.NewsThumbImg(AlumniNewsId)) .AppendLinkHead(Title, Routes.PageUrl(AlumniNewsId, NewsType == Entities.NewsType.News ? PageTypes.News : PageTypes.AlumniStory)) .AppendDiv(NewsType == Entities.NewsType.News ? News.LetterLimited(120).Replace("\n", " ") : SubTitle); return(new HtmlComposer().AppendClearDiv(composer.Text).Text.ToString()); }
public string GetDisgest() { var composer = new HtmlComposer(); composer.AppendImg(Routes.ImageUrl("jobs.png")) .AppendLinkHead(Title, Routes.JobSearchUrl()) .AppendDiv(Description.LetterLimited(120).Replace("\n", " ")); return(new HtmlComposer().AppendClearDiv(composer.Text).Text.ToString()); }
public string GetDisgest() { var composer = new HtmlComposer(); composer.AppendImg(Routes.ImageUrl("msg.png")) .AppendLinkHead(SenderName, Routes.MessageUrl(MessageThreadId)) .AppendDiv(Text.LetterLimited(80).Replace("\n", " ")); return(composer.Text.ToString()); }
public string GetDisgest() { var composer = new HtmlComposer(); var comment = Comments[0]; composer.AppendImg(Routes.ImageUrl("discussion.png")) .AppendLinkHead(Title, Routes.DisucssionUrl(DiscussionId)) .AppendDiv("by " + comment.SenderName, true) .AppendDiv(Content.LetterLimited(120).Replace("\n", " ")); return(composer.Text.ToString()); }
public string GetDisgest() { var istFrom = FromDate.Add(TimeSpan.FromMinutes(330)); var from = string.Format("{0} {1} IST", FromDate.ToString("ddd, dd MMM yyyy"), FromDate.ToShortTimeString()); var composer = new HtmlComposer(); composer.AppendImg(Routes.ImageUrl("event_mail.jpg")) .AppendLinkHead(EventName, Routes.EventsUrl(EventId)) .AppendDiv(Location.Replace("\n", " ")) .AppendDiv(from); return(composer.Text.ToString()); }