public static System.Web.WebPages.HelperResult TocUnit(TocUnitModel unit, int index) { return(new System.Web.WebPages.HelperResult(__razor_helper_writer => { var collapseOption = unit.IsCurrent ? "collapse in" : "collapse"; WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\t<li class=\"units-list-item clickable full-width\">\r\n\t\t<a data-toggle=\"collapse\" h" + "ref="); WebViewPage.WriteTo(@__razor_helper_writer, "#N" + index); WebViewPage.WriteLiteralTo(@__razor_helper_writer, " class=\"units-list-item-text no-smooth-scrolling\" data-score=\""); WebViewPage.WriteTo(@__razor_helper_writer, SlideHtml.Score(unit.Score, unit.MaxScore)); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">"); WebViewPage.WriteTo(@__razor_helper_writer, unit.UnitName); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "</a>\r\n\t\t<ul id="); WebViewPage.WriteTo(@__razor_helper_writer, "N" + index); WebViewPage.WriteLiteralTo(@__razor_helper_writer, " class=\"slides-list "); WebViewPage.WriteTo(@__razor_helper_writer, collapseOption); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">\r\n"); foreach (var page in unit.Pages) { WebViewPage.WriteTo(@__razor_helper_writer, TocItem(page)); } foreach (var kv in unit.AdditionalScores) { var scoringGroup = kv.Key; var score = kv.Value; WebViewPage.WriteTo(@__razor_helper_writer, TocAdditionalScore(scoringGroup, score)); } WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\t\t</ul>\r\n\t</li>\r\n"); })); }
public static System.Web.WebPages.HelperResult TocUnit(TocUnitModel unit, int index) { #line default #line hidden return(new System.Web.WebPages.HelperResult(__razor_helper_writer => { var collapseOption = unit.IsCurrent ? "collapse in" : "collapse"; WriteLiteralTo(__razor_helper_writer, "\t<li"); WriteLiteralTo(__razor_helper_writer, " class=\"units-list-item clickable full-width\""); WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t<a"); WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=", 1300), Tuple.Create("", 1322) , Tuple.Create(Tuple.Create("", 1306), Tuple.Create <System.Object, System.Int32>("#N" + index , 1306), false) ); WriteLiteralTo(__razor_helper_writer, " class=\"units-list-item-text no-smooth-scrolling\""); WriteLiteralTo(__razor_helper_writer, " data-score=\""); WriteTo(__razor_helper_writer, SlideHtml.ShowScore(unit.Score, unit.MaxScore)); WriteLiteralTo(__razor_helper_writer, "\""); WriteLiteralTo(__razor_helper_writer, ">"); WriteTo(__razor_helper_writer, unit.UnitName); WriteLiteralTo(__razor_helper_writer, "</a>\r\n\t\t<ul"); WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=", 1458), Tuple.Create("", 1477) , Tuple.Create(Tuple.Create("", 1462), Tuple.Create <System.Object, System.Int32>("N" + index , 1462), false) ); WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1477), Tuple.Create("\"", 1512) , Tuple.Create(Tuple.Create("", 1485), Tuple.Create("slides-list", 1485), true) , Tuple.Create(Tuple.Create(" ", 1496), Tuple.Create <System.Object, System.Int32>(collapseOption , 1497), false) ); WriteLiteralTo(__razor_helper_writer, ">\r\n"); foreach (var page in unit.Pages) { WriteTo(__razor_helper_writer, TocItem(page)); } WriteLiteralTo(__razor_helper_writer, "\t\t\t"); foreach (var kv in unit.AdditionalScores) { var scoringGroup = kv.Key; var score = kv.Value; WriteTo(__razor_helper_writer, TocAdditionalScore(scoringGroup, score)); } WriteLiteralTo(__razor_helper_writer, "\t\t</ul>\r\n\t</li>\r\n"); })); #line default #line hidden }