Line 1: #pragma checksum "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A94370315666043BAB17F97935C5B17CE75E7D4143B338E9E6C7EA471EFE2CA9"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Optimization;
Line 27: using System.Web.Routing;
Line 28: using HtmlHelpers.BeginCollectionItem;
Line 29:
Line 30: #line 1 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 31: using Junki.ViewModels;
Line 32:
Line 33: #line default
Line 34: #line hidden
Line 35: using Microsoft.Web.Helpers;
Line 36: using DotNetOpenAuth.AspNet;
Line 37: using WebMatrix.WebData;
Line 38: using Microsoft.Web.WebPages.OAuth;
Line 39: using WebMatrix.Data;
Line 40:
Line 41:
Line 42: public class _Page_Views_Home_PhotosByCategory_cshtml : System.Web.Mvc.WebViewPage<Junki.ViewModels.PhotosByCategoryViewModel> {
Line 43:
Line 44: #line hidden
Line 45:
Line 46: public _Page_Views_Home_PhotosByCategory_cshtml() {
Line 47: }
Line 48:
Line 49: protected ASP.global_asax ApplicationInstance {
Line 50: get {
Line 51: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 52: }
Line 53: }
Line 54:
Line 55: public override void Execute() {
Line 56: WriteLiteral("<div");
Line 57:
Line 58: WriteLiteral(" id=\"PhotosByCategoryView\"");
Line 59:
Line 60: WriteLiteral(" class=\"WoodBackground\"");
Line 61:
Line 62: WriteLiteral(">\r\n <div");
Line 63:
Line 64: WriteLiteral(" class=\"subContent\"");
Line 65:
Line 66: WriteLiteral(">\r\n <div");
Line 67:
Line 68: WriteLiteral(" class=\"pageTitle\"");
Line 69:
Line 70: WriteLiteral(">\r\n <h2>");
Line 71:
Line 72:
Line 73: #line 7 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 74: Write(Model.Title);
Line 75:
Line 76:
Line 77: #line default
Line 78: #line hidden
Line 79: WriteLiteral("</h2>\r\n <div");
Line 80:
Line 81: WriteLiteral(" class=\"Form\"");
Line 82:
Line 83: WriteLiteral(">\r\n");
Line 84:
Line 85:
Line 86: #line 9 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 87:
Line 88:
Line 89: #line default
Line 90: #line hidden
Line 91:
Line 92: #line 9 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 93:
Line 94: using (Html.BeginForm(MVC.Home.ActionNames.PhotosByCategory, MVC.Home.Name, FormMethod.Get))
Line 95: {
Line 96:
Line 97:
Line 98: #line default
Line 99: #line hidden
Line 100:
Line 101: #line 12 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 102: Write(Html.DropDownListFor(s => s.listType, Model.CategoryList, new { @onchange = "this.form.submit()" }));
Line 103:
Line 104:
Line 105: #line default
Line 106: #line hidden
Line 107:
Line 108: #line 12 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 109:
Line 110: }
Line 111:
Line 112:
Line 113: #line default
Line 114: #line hidden
Line 115: WriteLiteral("\r\n </div>\r\n </div>\r\n\r\n <div");
Line 116:
Line 117: WriteLiteral(" class=\"clearfix\"");
Line 118:
Line 119: WriteLiteral("></div>\r\n <div");
Line 120:
Line 121: WriteLiteral(" id=\"PhotosView\"");
Line 122:
Line 123: WriteLiteral(">\r\n");
Line 124:
Line 125:
Line 126: #line 20 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 127:
Line 128:
Line 129: #line default
Line 130: #line hidden
Line 131:
Line 132: #line 20 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 133:
Line 134: foreach (var item in Model.Photos)
Line 135: {
Line 136:
Line 137:
Line 138: #line default
Line 139: #line hidden
Line 140:
Line 141: #line 23 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 142: Write(Html.Partial(MVC.Home.Views.Partials.PhotoListCategoryItem, PhotoListCategoryItemViewModel.Convert(item.Key, item.Value, Model.listType)));
Line 143:
Line 144:
Line 145: #line default
Line 146: #line hidden
Line 147:
Line 148: #line 23 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 149:
Line 150:
Line 151: if (Model.Photos.ToList().IndexOf(item) % 3 == 2)
Line 152: {
Line 153:
Line 154:
Line 155: #line default
Line 156: #line hidden
Line 157: WriteLiteral(" <div");
Line 158:
Line 159: WriteLiteral(" class=\"clearfix\"");
Line 160:
Line 161: WriteLiteral("></div>\r\n");
Line 162:
Line 163:
Line 164: #line 28 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 165: }
Line 166: }
Line 167:
Line 168:
Line 169: #line default
Line 170: #line hidden
Line 171: WriteLiteral("\r\n\r\n <div");
Line 172:
Line 173: WriteLiteral(" class=\"clearfix\"");
Line 174:
Line 175: WriteLiteral("></div>\r\n </div>\r\n <div");
Line 176:
Line 177: WriteLiteral(" class=\"pageing\"");
Line 178:
Line 179: WriteLiteral(">\r\n\r\n");
Line 180:
Line 181:
Line 182: #line 36 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 183:
Line 184:
Line 185: #line default
Line 186: #line hidden
Line 187:
Line 188: #line 36 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 189:
Line 190: if (Model.Page > 1)
Line 191: {
Line 192:
Line 193:
Line 194: #line default
Line 195: #line hidden
Line 196:
Line 197: #line 39 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 198: Write(Html.ActionLink(ViewRes.View.Home.PhotographerDetails.Previous, MVC.Home.ActionNames.PhotosByCategory, MVC.Home.Name, new { page = Model.Page - 1, listType = Model.listType }, null));
Line 199:
Line 200:
Line 201: #line default
Line 202: #line hidden
Line 203:
Line 204: #line 39 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 205:
Line 206: }
Line 207:
Line 208: int i = 0;
Line 209: do
Line 210: {
Line 211: int _tmp = Model.Page - 1 + i;
Line 212: if (_tmp > 0 && _tmp <= Model.PageCount)
Line 213: {
Line 214:
Line 215:
Line 216: #line default
Line 217: #line hidden
Line 218:
Line 219: #line 48 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 220: Write(Html.ActionLink(_tmp.ToString(), MVC.Home.ActionNames.PhotosByCategory, MVC.Home.Name, new { page = _tmp, listType = Model.listType }, null));
Line 221:
Line 222:
Line 223: #line default
Line 224: #line hidden
Line 225:
Line 226: #line 48 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 227:
Line 228: }
Line 229: i++;
Line 230: } while (i <= 3);
Line 231:
Line 232: if (Model.Page < Model.PageCount)
Line 233: {
Line 234:
Line 235:
Line 236: #line default
Line 237: #line hidden
Line 238:
Line 239: #line 55 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 240: Write(Html.ActionLink(ViewRes.View.Home.PhotographerDetails.Next, MVC.Home.ActionNames.PhotosByCategory, MVC.Home.Name, new { page = Model.Page + 1, listType = Model.listType }, null));
Line 241:
Line 242:
Line 243: #line default
Line 244: #line hidden
Line 245:
Line 246: #line 55 "C:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml"
Line 247:
Line 248: }
Line 249:
Line 250:
Line 251: #line default
Line 252: #line hidden
Line 253: WriteLiteral("\r\n </div>\r\n </div>\r\n</div>");
Line 254:
Line 255: }
Line 256: }
Line 257: }
Line 258:
|