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 full-width\">\r\n\t\t<a data-toggle=\"collapse\" href=");


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));

                  
			}

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\t\t</ul>\r\n\t</li>\r\n");



});

}
예제 #2
0
		public TocModel(Course course, TocUnitModel[] units)
		{
			Course = course;
			Units = units;
		}
예제 #3
0
public static System.Web.WebPages.HelperResult TocUnit(TocUnitModel unit, int index)
{
return new System.Web.WebPages.HelperResult(__razor_helper_writer => {



#line 53 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
 
	var collapseOption = unit.IsCurrent ? "collapse in" : "collapse";

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\t<li class=\"units-list-item full-width\">\r\n\t\t<a data-toggle=\"collapse\" href=");



#line 56 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, "#N" + index);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, " class=\"units-list-item-text\" data-score=\"");



#line 56 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
                                               WebViewPage.WriteTo(@__razor_helper_writer, SlideHtml.Score(unit.Score, unit.MaxScore));

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">");



#line 56 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
                                                                                            WebViewPage.WriteTo(@__razor_helper_writer, unit.UnitName);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "</a>\r\n\t\t<ul id=");



#line 57 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, "N" + index);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, " class=\"slides-list ");



#line 57 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, collapseOption);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">\r\n");



#line 58 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
 			foreach (var page in unit.Pages)
			{
				
#line default
#line hidden


#line 60 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, TocItem(page));

#line default
#line hidden


#line 60 "..\..\Views\SlideNavigation\TableOfContents.cshtml"
                  
			}

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\t\t</ul>\r\n\t</li>\r\n");



#line 64 "..\..\Views\SlideNavigation\TableOfContents.cshtml"

#line default
#line hidden

});

}
예제 #4
0
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 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=", 1523), Tuple.Create("", 1544)
, Tuple.Create(Tuple.Create("", 1529), Tuple.Create<System.Object, System.Int32>("#N" + index
, 1529), false)
);

WriteLiteralTo(__razor_helper_writer, " class=\"units-list-item-text\"");

WriteLiteralTo(__razor_helper_writer, " data-score=\"");

                                                                  WriteTo(__razor_helper_writer, SlideHtml.Score(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=", 1656), Tuple.Create("", 1674)
, Tuple.Create(Tuple.Create("", 1660), Tuple.Create<System.Object, System.Int32>("N" + index
, 1660), false)
);

WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1674), Tuple.Create("\"", 1709)
, Tuple.Create(Tuple.Create("", 1682), Tuple.Create("slides-list", 1682), true)
, Tuple.Create(Tuple.Create(" ", 1693), Tuple.Create<System.Object, System.Int32>(collapseOption
, 1694), 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</ul>\r\n\t</li>\r\n");


});

#line default
#line hidden
}