Line 1: #pragma checksum "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CEF432CE58492DBD8EC3A2303BAC82F00E9C2AD1F4F728B583623B6C941F4C19"
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.Routing;
Line 27: using Umbraco.Web;
Line 28: using Umbraco.Core;
Line 29: using Umbraco.Core.Models;
Line 30: using Umbraco.Core.Models.PublishedContent;
Line 31: using Umbraco.Web.Mvc;
Line 32: using Examine;
Line 33: using Umbraco.Web.PublishedModels;
Line 34:
Line 35:
Line 36: public class _Page_Views_CommentSection_cshtml : Umbraco.Web.Mvc.UmbracoTemplatePage {
Line 37:
Line 38: #line hidden
Line 39:
Line 40: public _Page_Views_CommentSection_cshtml() {
Line 41: }
Line 42:
Line 43: protected ASP.global_asax ApplicationInstance {
Line 44: get {
Line 45: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 46: }
Line 47: }
Line 48:
Line 49: public override void Execute() {
Line 50:
Line 51: #line 2 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 52:
Line 53:
Line 54:
Line 55:
Line 56: var CommentSections = Model.Content.AncestorOrSelf(1);
Line 57:
Line 58: var page = CurrentPage;
Line 59: Umbraco.Core.Models.IPublishedContent current = CurrentPage;
Line 60: Umbraco.Core.Models.IPublishedContent kids = Model.Content.Children(c => c.DocumentTypeAlias.Equals("CommentSection")).FirstOrDefault();
Line 61: System.Collections.Generic.List<Umbraco.Core.Models.IPublishedContent> comments = kids.Descendants("Comment").Where(c => (c.IsVisible())).ToList();
Line 62: System.Collections.Generic.List<Umbraco.Core.Models.IPublishedContent> orderedList = comments.OrderBy(x => x.CreateDate).ToList();
Line 63:
Line 64:
Line 65:
Line 66: #line default
Line 67: #line hidden
Line 68: WriteLiteral("\r\n<div");
Line 69:
Line 70: WriteLiteral(" class=\"prod-specifications-content comments-content\"");
Line 71:
Line 72: WriteLiteral(">\r\n\r\n <!-- title -->\r\n\r\n <div");
Line 73:
Line 74: WriteLiteral(" class=\"page-title\"");
Line 75:
Line 76: WriteLiteral("><h1>Comments</h1></div>\r\n");
Line 77:
Line 78:
Line 79: #line 20 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 80:
Line 81:
Line 82: #line default
Line 83: #line hidden
Line 84:
Line 85: #line 20 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 86: using (Html.BeginForm("Submit", "comments", FormMethod.Post))
Line 87: {
Line 88:
Line 89:
Line 90:
Line 91: #line default
Line 92: #line hidden
Line 93: WriteLiteral(" <!-- <h2>Comment</h2> -->\r\n");
Line 94:
Line 95: WriteLiteral(" <div");
Line 96:
Line 97: WriteLiteral(" class=\"\"");
Line 98:
Line 99: WriteLiteral(">\r\n <div");
Line 100:
Line 101: WriteLiteral(" class=\"form-group\"");
Line 102:
Line 103: WriteLiteral(">\r\n <textarea");
Line 104:
Line 105: WriteLiteral(" name=\"Comment\"");
Line 106:
Line 107: WriteLiteral(" id=\"comment\"");
Line 108:
Line 109: WriteLiteral(" rows=\"4\"");
Line 110:
Line 111: WriteLiteral(" class=\"form-control\"");
Line 112:
Line 113: WriteLiteral(" placeholder=\"Type comment here...\"");
Line 114:
Line 115: WriteLiteral(" required></textarea>\r\n <!--\r\n <input type=\"tex" +
Line 116: "t\" name=\"Comment\" id=\"comment\" class=\"form-control\" placeholder=\"Comment\" requir" +
Line 117: "ed />\r\n -->\r\n <input");
Line 118:
Line 119: WriteLiteral(" id=\"CommentSectionId\"");
Line 120:
Line 121: WriteLiteral(" type=\"hidden\"");
Line 122:
Line 123: WriteAttribute("value", Tuple.Create(" value=\"", 1330), Tuple.Create("\"", 1346)
Line 124:
Line 125: #line 30 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 126: , Tuple.Create(Tuple.Create("", 1338), Tuple.Create<System.Object, System.Int32>(kids.Id
Line 127:
Line 128: #line default
Line 129: #line hidden
Line 130: , 1338), false)
Line 131: );
Line 132:
Line 133: WriteLiteral(" name=\"CommentSectionId\"");
Line 134:
Line 135: WriteLiteral(">\r\n <input");
Line 136:
Line 137: WriteLiteral(" id=\"pageId\"");
Line 138:
Line 139: WriteLiteral(" type=\"hidden\"");
Line 140:
Line 141: WriteAttribute("value", Tuple.Create(" value=\"", 1422), Tuple.Create("\"", 1441)
Line 142:
Line 143: #line 31 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 144: , Tuple.Create(Tuple.Create("", 1430), Tuple.Create<System.Object, System.Int32>(current.Id
Line 145:
Line 146: #line default
Line 147: #line hidden
Line 148: , 1430), false)
Line 149: );
Line 150:
Line 151: WriteLiteral(" name=\"pageId\"");
Line 152:
Line 153: WriteLiteral(">\r\n <span");
Line 154:
Line 155: WriteLiteral(" class=\"input-error\"");
Line 156:
Line 157: WriteLiteral("></span>\r\n </div>\r\n <button");
Line 158:
Line 159: WriteLiteral(" type=\"submit\"");
Line 160:
Line 161: WriteLiteral(" class=\"btn btn-default\"");
Line 162:
Line 163: WriteLiteral(" id=\"submitBtn\"");
Line 164:
Line 165: WriteLiteral(">Comment</button>\r\n </div>\r\n");
Line 166:
Line 167:
Line 168: #line 36 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 169: }
Line 170:
Line 171:
Line 172: #line default
Line 173: #line hidden
Line 174: WriteLiteral(" <!-- title - end -->\r\n\r\n");
Line 175:
Line 176:
Line 177: #line 39 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 178:
Line 179:
Line 180: #line default
Line 181: #line hidden
Line 182:
Line 183: #line 39 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 184: if ((comments != null) && (comments.Count > 0))
Line 185: {
Line 186:
Line 187:
Line 188: #line default
Line 189: #line hidden
Line 190: WriteLiteral(" <table");
Line 191:
Line 192: WriteLiteral(" width=\"100%\"");
Line 193:
Line 194: WriteLiteral(">\r\n");
Line 195:
Line 196:
Line 197: #line 42 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 198:
Line 199:
Line 200: #line default
Line 201: #line hidden
Line 202:
Line 203: #line 42 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 204: foreach (Umbraco.Core.Models.IPublishedContent comment in orderedList)
Line 205: {
Line 206:
Line 207:
Line 208:
Line 209: #line default
Line 210: #line hidden
Line 211: WriteLiteral(" <tr>\r\n <td>\r\n <div");
Line 212:
Line 213: WriteLiteral(" class=\"comment-date\"");
Line 214:
Line 215: WriteLiteral(">\r\n");
Line 216:
Line 217: WriteLiteral(" ");
Line 218:
Line 219:
Line 220: #line 48 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 221: Write(comment.GetPropertyValue("time"));
Line 222:
Line 223:
Line 224: #line default
Line 225: #line hidden
Line 226: WriteLiteral("\r\n </div>\r\n <div");
Line 227:
Line 228: WriteLiteral(" class=\"comment-msg\"");
Line 229:
Line 230: WriteLiteral(">\r\n");
Line 231:
Line 232: WriteLiteral(" ");
Line 233:
Line 234:
Line 235: #line 51 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 236: Write(comment.GetPropertyValue("text"));
Line 237:
Line 238:
Line 239: #line default
Line 240: #line hidden
Line 241: WriteLiteral("\r\n </div>\r\n </td>\r\n </tr" +
Line 242: ">\r\n");
Line 243:
Line 244:
Line 245: #line 55 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 246: }
Line 247:
Line 248:
Line 249: #line default
Line 250: #line hidden
Line 251: WriteLiteral(" </table>\r\n");
Line 252:
Line 253:
Line 254: #line 57 "C:\inetpub\wwwroot\Barlow\Views\CommentSection.cshtml"
Line 255: }
Line 256:
Line 257:
Line 258: #line default
Line 259: #line hidden
Line 260: WriteLiteral(" <div");
Line 261:
Line 262: WriteLiteral(" class=\"clear\"");
Line 263:
Line 264: WriteLiteral("><!--clear--></div>\r\n</div>");
Line 265:
Line 266: }
Line 267: }
Line 268: }
Line 269:
|