public static System.Web.WebPages.HelperResult PreviousNextPager(IPreviousNextPager pager) { return new System.Web.WebPages.HelperResult(__razor_helper_writer => { #line 7 "..\..\Views\Helpers\ViewHelpers.cshtml" if (pager.HasNextPage || pager.HasPreviousPage) { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " <ul class=\"pager\">\r\n <li class=\"previous\">\r\n"); #line 11 "..\..\Views\Helpers\ViewHelpers.cshtml" if (pager.HasPreviousPage) { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " <a href=\""); #line 12 "..\..\Views\Helpers\ViewHelpers.cshtml" WebViewPage.WriteTo(@__razor_helper_writer, pager.PreviousPageUrl); #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" title=\"Go to the previous page.\">Previous</a>\r\n"); #line 13 "..\..\Views\Helpers\ViewHelpers.cshtml" } else { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " "); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "Previous"); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\r\n"); #line 16 "..\..\Views\Helpers\ViewHelpers.cshtml" } #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " </li>\r\n <li class=\"next\">\r\n"); #line 19 "..\..\Views\Helpers\ViewHelpers.cshtml" if (pager.HasNextPage) { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " <a href=\""); #line 20 "..\..\Views\Helpers\ViewHelpers.cshtml" WebViewPage.WriteTo(@__razor_helper_writer, pager.NextPageUrl); #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" title=\"Go to the next page.\">Next</a>\r\n"); #line 21 "..\..\Views\Helpers\ViewHelpers.cshtml" } else { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " "); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "Next"); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\r\n"); #line 24 "..\..\Views\Helpers\ViewHelpers.cshtml" } #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " </li>\r\n </ul>\r\n"); #line 27 "..\..\Views\Helpers\ViewHelpers.cshtml" } #line default #line hidden }); }
public static System.Web.WebPages.HelperResult PreviousNextPager(IPreviousNextPager pager) { return(new System.Web.WebPages.HelperResult(__razor_helper_writer => { #line 7 "..\..\Views\Helpers\ViewHelpers.cshtml" if (pager.HasNextPage || pager.HasPreviousPage) { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " <ul class=\"pager\">\r\n <li class=\"previous\">\r\n"); #line 11 "..\..\Views\Helpers\ViewHelpers.cshtml" if (pager.HasPreviousPage) { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " <a href=\""); #line 12 "..\..\Views\Helpers\ViewHelpers.cshtml" WebViewPage.WriteTo(@__razor_helper_writer, pager.PreviousPageUrl); #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" title=\"Go to the previous page.\">Previous</a>\r\n"); #line 13 "..\..\Views\Helpers\ViewHelpers.cshtml" } else { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " "); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "Previous"); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\r\n"); #line 16 "..\..\Views\Helpers\ViewHelpers.cshtml" } #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " </li>\r\n <li class=\"next\">\r\n"); #line 19 "..\..\Views\Helpers\ViewHelpers.cshtml" if (pager.HasNextPage) { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " <a href=\""); #line 20 "..\..\Views\Helpers\ViewHelpers.cshtml" WebViewPage.WriteTo(@__razor_helper_writer, pager.NextPageUrl); #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" title=\"Go to the next page.\">Next</a>\r\n"); #line 21 "..\..\Views\Helpers\ViewHelpers.cshtml" } else { #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " "); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "Next"); WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\r\n"); #line 24 "..\..\Views\Helpers\ViewHelpers.cshtml" } #line default #line hidden WebViewPage.WriteLiteralTo(@__razor_helper_writer, " </li>\r\n </ul>\r\n"); #line 27 "..\..\Views\Helpers\ViewHelpers.cshtml" } #line default #line hidden })); }