public string GetDisgest() { var composer = new HtmlComposer(); composer.AppendLinkHead(SenderName, Routes.MentorUrl(MentorShipId)) .AppendDiv(Text.LetterLimited(80)); return composer.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(); 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 GetDigest() { var htmlCompser = new HtmlComposer(); foreach (var srv in _services) { var digest = ComposerDigest(srv); htmlCompser.AppendDiv(digest); } var msg = htmlCompser.Text; return msg; }
public string GetDigest() { var htmlCompser = new HtmlComposer(); foreach (var srv in _services) { var digest = ComposerDigest(srv); htmlCompser.AppendDiv(digest); } var msg = htmlCompser.Text; return(msg); }
//private string EventSummay //{ // get // { // var htmlCompser = new HtmlComposer(); // using (var evtSrv = new EventSrv()) // { // var events = evtSrv.GetDigestEvents(_userId); // if (events.Any()) // { // htmlCompser.AppendHead("Upcoming Events"); // foreach (var evt in events) // { // htmlCompser // .AppendRaw(evt.GetDisgest()) // .AppendHrDotted(); // } // } // } // var msg = htmlCompser.Text.ToString(); // return msg; // } //} //private string DiscussionSummay //{ // get // { // var htmlCompser = new HtmlComposer(); // using (var srv = new DiscussionSrv()) // { // var dicussions = srv.GetDigest(_userId); // if (dicussions.Any()) // { // htmlCompser.AppendHead("Active Discussions"); // foreach (var evt in dicussions) // { // htmlCompser // .AppendRaw(evt.GetDisgest()) // .AppendHrDotted(); // } // } // } // var msg = htmlCompser.Text.ToString(); // return msg; // } //} string ComposerDigest(IDigestService service) { var htmlCompser = new HtmlComposer(); var items = service.GetDigest(_userId); if (items.Any()) { htmlCompser.AppendHead(service.GetDigestTitle()); var last = items.Last(); foreach (var item in items) { htmlCompser .AppendRaw(item.GetDisgest()); if (item != last) { htmlCompser.AppendHrDotted(); } } htmlCompser.AppendHr(); htmlCompser.AppendBr(); } return(htmlCompser.Text); }
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 ReminderMail() { var date = string.Format("Due Date : {0}", DueDate.ToString("ddd, dd MMM yyyy")); var composer = new HtmlComposer(); composer.AppendDiv("This is gentle reminder for the task assigned to you.") .AppendHead("Task : " + Title) .AppendDiv(date) .AppendDiv("Click the below link for more details") .AppendLink(Routes.ActivityUrl(ActivityId), Routes.ActivityUrl(ActivityId)); return composer.Text.ToString(); }
//private string EventSummay //{ // get // { // var htmlCompser = new HtmlComposer(); // using (var evtSrv = new EventSrv()) // { // var events = evtSrv.GetDigestEvents(_userId); // if (events.Any()) // { // htmlCompser.AppendHead("Upcoming Events"); // foreach (var evt in events) // { // htmlCompser // .AppendRaw(evt.GetDisgest()) // .AppendHrDotted(); // } // } // } // var msg = htmlCompser.Text.ToString(); // return msg; // } //} //private string DiscussionSummay //{ // get // { // var htmlCompser = new HtmlComposer(); // using (var srv = new DiscussionSrv()) // { // var dicussions = srv.GetDigest(_userId); // if (dicussions.Any()) // { // htmlCompser.AppendHead("Active Discussions"); // foreach (var evt in dicussions) // { // htmlCompser // .AppendRaw(evt.GetDisgest()) // .AppendHrDotted(); // } // } // } // var msg = htmlCompser.Text.ToString(); // return msg; // } //} string ComposerDigest(IDigestService service) { var htmlCompser = new HtmlComposer(); var items = service.GetDigest(_userId); if (items.Any()) { htmlCompser.AppendHead(service.GetDigestTitle()); var last = items.Last(); foreach (var item in items) { htmlCompser .AppendRaw(item.GetDisgest()); if(item != last) { htmlCompser.AppendHrDotted(); } } htmlCompser.AppendHr(); htmlCompser.AppendBr(); } return htmlCompser.Text; }
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(); }
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(); }