public static TagUl BadgesNew(BangesVM badges) { return (H.ul.Class("sign")[badges.GetBadges().Select(x => { var img = (object)H.Img(x.Item1.Url).Height(86).Title(x.Item2); if (!x.Item5.IsEmpty()) { img = H.Anchor(x.Item5, img); } return H.li[x.Item3 == null ? img : H.Anchor(x.Item3, img).Class("ga-click fancy-box").Rel(x.Item4)]; })]); }
public static TagDiv Badges(BangesVM badges) { return(H.div[H.h3.Class("profile_h3")["Мои награды"], H.ul[badges.GetBadges().Select(x => { var img = (object)H.Img(x.Item1.Url).Title(x.Item2); if (!x.Item5.IsEmpty()) { img = H.Anchor(x.Item5, img); } return H.li[x.Item3 == null ? img : H.Anchor(x.Item3, img).Class("ga-click fancy-box").Rel(x.Item4)].Style( "float:left; margin:0 5px 10px;"); })] .Style("overflow:hidden; list-style:none; padding-left:0;"), H.Div("clear") ].Style("float:left; margin-left:50px;")); }