private TagTr CourseFourTr(IEnumerable <Group> groups) { if (groups.IsEmpty()) { return(null); } return(tr[ groups.Select(g => { var courseLink = Html.CourseLinkAnchor(g.Course); courseLink.Href(courseLink.GetHref() + "?src=anons"); return td.Style("width:50%").Valign("top")[ Images.Course(g.Course.UrlName) .Width(100).FloatLeft().ToString(), courseLink, br, span.Class("date")[g.DateBeg.DefaultString() + " " + Htmls2.Discount(g, true)], p.Style("font-size: 11px;")[ g.Course.AnnounceDescription] ]; }) ]); }
public TagDiv MobileCourseGroups(List <Group> groups) { if (!groups.Any()) { return(null); } return(H.div.Id("groups")[ H.h3["Ближайшие группы:"], groups.Select(g => H.Div("group")[ Url.Link <CourseController>(c => c.Group(g.Group_ID), l(span.Class("coursedate")[g.DateInterval], span.Class("coursetime")[g.TimeInterval + ";" + g.DaySequence + (g.IsOpenLearning ? ";Открытое Обучение" : "")], span.Class("courseplace")[ "УК " + StringUtils.AngleBrackets( g.Complex.GetOrDefault(x => x.Name))], Raw(Htmls2.Discount(g, true))))]) ]); }
public TagDiv MobileGroups(List <Group> groups) { if (!groups.Any()) { return(null); } return(H.div.Id("groups")[ H.h3["Ближайшие группы:"], groups.Select(g => H.Div("group")[ Url.Link <CourseController>(c => c.Group(g.Group_ID), l(span.Class("date")[g.DateBeg.DefaultString()], span.Class("groupName")[g.Course.GetName()], Raw(Htmls2.Discount(g, true))))]) ]); }