public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 4 "..\..\Views\Request\ListBody.cshtml"

            Layout = null;
            this.Stylesheet("Request.min.css");
            var id = Html.UniqueId();
            Func <RequestListGetModel, string> reloadUrl = m => Url.Action(( RequestController cr ) => cr.ListBody(m));


            #line default
            #line hidden
            WriteLiteral(" \r\n\r\n");


            #line 11 "..\..\Views\Request\ListBody.cshtml"
            Write(Html.Render <IGrid>()
                  .From(Model.List)
                  .Attributes(new { @class = "Grid RequestsGrid " + id })
                  .ReloadUrl(Url.ForList <RequestController>().ForReload(Model.List))
                  .Id(r => r.Request.ID)

                  .Column(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "<a");

                WriteAttributeTo(__razor_template_writer, "href", Tuple.Create(" href=\"", 519), Tuple.Create("\"", 613)

            #line 17 "..\..\Views\Request\ListBody.cshtml"
                                 , Tuple.Create(Tuple.Create("", 526), Tuple.Create <System.Object, System.Int32>(Url.Action <RequestController>(c => c.RequestView(item.Request.ID, Model.Folder))

            #line default
            #line hidden
                                                                                                                  , 526), false)
                                 );

                WriteAttributeTo(__razor_template_writer, "title", Tuple.Create(" title=\"", 614), Tuple.Create("\"", 640)

            #line 17 "..\..\Views\Request\ListBody.cshtml"
                                 , Tuple.Create(Tuple.Create("", 622), Tuple.Create <System.Object, System.Int32>(item.Request.Name

            #line default
            #line hidden
                                                                                                                  , 622), false)
                                 );

                WriteLiteralTo(__razor_template_writer, ">");


            #line 17 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, item.Request.Name);


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "</a>");


            #line 17 "..\..\Views\Request\ListBody.cshtml"
            }),
                          c => c.Title("Name").Sortable("Name").Class("Name"))

                  .Column(r => r.Request.ID, o => o.Title("Id").Sortable("ID").Class("Id"))

                  .Column(r => ((DateTime)r.Request.UpdatedOn).ToString("MM/dd/yyyy hh:mm tt"),
                          c => c.Title(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "Date ");


            #line 23 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, DateFilter());


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, " ");


            #line 23 "..\..\Views\Request\ListBody.cshtml"
            })).Sortable("Date").Class("Date"))

                  //.Column( r => r.Request.CreatedBy.UserName, o => o = o.Title( "User" ).Sortable( "UserName" ).Class( "User" ).CellAttribute( "title", r => r.Request.CreatedBy.UserName ) )

                  .Column(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden

            #line 27 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, StatusName(item));


            #line default
            #line hidden

            #line 27 "..\..\Views\Request\ListBody.cshtml"
            }),
                          c => c.Title(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "Status ");


            #line 28 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, StatusFilter());


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, " ");


            #line 28 "..\..\Views\Request\ListBody.cshtml"
            })).Sortable("Status").Class("Status"))

                  .Column(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden

            #line 30 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, RequestHelpers.RequestTypeName(Model, item));


            #line default
            #line hidden

            #line 30 "..\..\Views\Request\ListBody.cshtml"
            }),
                          c => c.Title(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "Type ");


            #line 31 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, RequestHelpers.RequestTypeFilter(Html, Model, reloadUrl));


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, " ");


            #line 31 "..\..\Views\Request\ListBody.cshtml"
            }))
                          .Sortable("Type").Class("Type"))

                  .If(Model.Project == null, g => g
                      .Column(r => Maybe.Value(r.Request.Project).Select(p => p.Name),
                              c => c.Title("Project").Sortable("Project").Class("Project"))
                      )

                  .FooterSuffix(_ => RequestHelpers.PageSizeSelector(Html, Model, reloadUrl))
                  .FooterPrefix(
                      item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "<div");

                WriteLiteralTo(__razor_template_writer, " class=\"ActionButtons\"");

                WriteLiteralTo(__razor_template_writer, ">\r\n");


            #line 42 "..\..\Views\Request\ListBody.cshtml"


            #line default
            #line hidden

            #line 42 "..\..\Views\Request\ListBody.cshtml"
                if (Model.GrantedRequestTypes.Any())
                {
            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, "                <button");

                    WriteAttributeTo(__razor_template_writer, "id", Tuple.Create(" id=\"", 2059), Tuple.Create("\"", 2088)

            #line 44 "..\..\Views\Request\ListBody.cshtml"
                                     , Tuple.Create(Tuple.Create("", 2064), Tuple.Create <System.Object, System.Int32>(id

            #line default
            #line hidden
                                                                                                                       , 2064), false)
                                     , Tuple.Create(Tuple.Create("", 2069), Tuple.Create("CreateRequestButton", 2069), true)
                                     );

                    WriteLiteralTo(__razor_template_writer, " class=\"ui-standard-button ui-short-button\"");

                    WriteLiteralTo(__razor_template_writer, ">New</button>\r\n");

                    WriteLiteralTo(__razor_template_writer, "                <div");

                    WriteAttributeTo(__razor_template_writer, "class", Tuple.Create(" class=\"", 2167), Tuple.Create("\"", 2200)

            #line 45 "..\..\Views\Request\ListBody.cshtml"
                                     , Tuple.Create(Tuple.Create("", 2175), Tuple.Create <System.Object, System.Int32>(id

            #line default
            #line hidden
                                                                                                                       , 2175), false)
                                     , Tuple.Create(Tuple.Create(" ", 2180), Tuple.Create("CreateRequestDialog", 2181), true)
                                     );

                    WriteLiteralTo(__razor_template_writer, " style=\"display: none\"");

                    WriteLiteralTo(__razor_template_writer, ">\r\n                    <div");

                    WriteLiteralTo(__razor_template_writer, " class=\"Prompt\"");

                    WriteLiteralTo(__razor_template_writer, ">Please choose a model, then click a request type to create a request</div>\r\n");


            #line 47 "..\..\Views\Request\ListBody.cshtml"


            #line default
            #line hidden

            #line 47 "..\..\Views\Request\ListBody.cshtml"
                    var models = Model.GrantedRequestTypes.Values.OrderBy(r => r.Model.Name).ToLookup(r => r.Model.ID);

            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, "\r\n");

                    WriteTo(__razor_template_writer,

            #line 48 "..\..\Views\Request\ListBody.cshtml"


            #line default
            #line hidden

            #line 48 "..\..\Views\Request\ListBody.cshtml"
                            Html.DropDownList("Model",
                                              models
                                              .Select(mdl => new SelectListItem {
                        Value = mdl.Key.ToString(), Text = mdl.First().Model.Name, Selected = models.Count() == 1
                    })
                                              .If(models.Count() > 1, ii => ii.StartWith(new SelectListItem {
                        Value = "", Text = "Select Model"
                    })),
                                              new { @class = "NewModelDropDown " + id }
                                              ));


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, "\r\n                \r\n                    <div");

                    WriteLiteralTo(__razor_template_writer, " class=\"RequestTypesContainer\"");

                    WriteLiteralTo(__razor_template_writer, ">\r\n");


            #line 56 "..\..\Views\Request\ListBody.cshtml"


            #line default
            #line hidden

            #line 56 "..\..\Views\Request\ListBody.cshtml"
                    foreach (var mdl in models)
                    {
            #line default
            #line hidden
                        WriteLiteralTo(__razor_template_writer, "                            <div");

                        WriteAttributeTo(__razor_template_writer, "class", Tuple.Create(" class=\"", 3122), Tuple.Create("\"", 3162)
                                         , Tuple.Create(Tuple.Create("", 3130), Tuple.Create("RequestTypes", 3130), true)

            #line 58 "..\..\Views\Request\ListBody.cshtml"
                                         , Tuple.Create(Tuple.Create(" ", 3142), Tuple.Create <System.Object, System.Int32>(id

            #line default
            #line hidden
                                                                                                                            , 3143), false)
                                         , Tuple.Create(Tuple.Create(" ", 3148), Tuple.Create("RTS", 3149), true)

            #line 58 "..\..\Views\Request\ListBody.cshtml"
                                         , Tuple.Create(Tuple.Create("", 3152), Tuple.Create <System.Object, System.Int32>(mdl.Key

            #line default
            #line hidden
                                                                                                                           , 3152), false)
                                         );


            #line 58 "..\..\Views\Request\ListBody.cshtml"
                        WriteTo(__razor_template_writer, Html.Raw(models.Count() == 1 ? " style=\"display: block;\"" : ""));


            #line default
            #line hidden
                        WriteLiteralTo(__razor_template_writer, ">\r\n");


            #line 59 "..\..\Views\Request\ListBody.cshtml"


            #line default
            #line hidden

            #line 59 "..\..\Views\Request\ListBody.cshtml"
                        foreach (var r in mdl.OrderBy(r => r.RequestType.Name))
                        {
            #line default
            #line hidden
                            WriteLiteralTo(__razor_template_writer, "                                <a");

                            WriteLiteralTo(__razor_template_writer, " class=\"RequestTypeLink\"");

                            WriteAttributeTo(__razor_template_writer, "href", Tuple.Create(" href=\"", 3414), Tuple.Create("\"", 3507)

            #line 61 "..\..\Views\Request\ListBody.cshtml"
                                             , Tuple.Create(Tuple.Create("", 3421), Tuple.Create <System.Object, System.Int32>(Url.Action <RequestController>(c => c.Create(Model.ProjectID, r.RequestType.ID))

            #line default
            #line hidden
                                                                                                                               , 3421), false)
                                             );

                            WriteLiteralTo(__razor_template_writer, ">");


            #line 61 "..\..\Views\Request\ListBody.cshtml"
                            WriteTo(__razor_template_writer, r.RequestType.Name);


            #line default
            #line hidden
                            WriteLiteralTo(__razor_template_writer, "</a>\r\n");


            #line 62 "..\..\Views\Request\ListBody.cshtml"
                        }


            #line default
            #line hidden
                        WriteLiteralTo(__razor_template_writer, "                            </div>\r\n");


            #line 64 "..\..\Views\Request\ListBody.cshtml"
                    }


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, "                    </div>\r\n                </div>\r\n");

                    WriteLiteralTo(__razor_template_writer, "                <script");

                    WriteLiteralTo(__razor_template_writer, " type=\"text/javascript\"");

                    WriteLiteralTo(__razor_template_writer, ">\r\n                    $(function($){\r\n                        $(\"#");


            #line 69 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, "CreateRequestButton\").click(function () {\r\n                            $(\".");


            #line 70 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, @".CreateRequestDialog"").dialog({ modal: true, width: 700, height: 500, title: ""Choose Request Type"",
                                buttons: [{ text: ""Cancel"", click: function () { $(this).dialog(""close""); }, 'class': ""ui-standard-button"" }]
                            });
                            return false;
                        });

                        var allRequestTypeGroups = $("".");


            #line 76 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, ".CreateRequestDialog .RequestTypesContainer .RequestTypes\");\r\n                   " +
                                   "     $(\".");


            #line 77 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, ".NewModelDropDown\").bind(\"change keydown keypress\", function () {\r\n              " +
                                   "              setTimeout(function () {\r\n                                var targ" +
                                   "etGroup = $(\".");


            #line 79 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, ".RTS\" + $(\".");


            #line 79 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, @".NewModelDropDown"").val());
                                if (targetGroup.is("":visible"")) return;
                                allRequestTypeGroups.slideUp(100);
                                targetGroup.slideDown(100);

                                var firstOption = $("".");


            #line 84 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, ".NewModelDropDown > option\").eq(0);\r\n                                if (!firstOp" +
                                   "tion.val()) firstOption.remove();\r\n                            }, 50);\r\n        " +
                                   "                });\r\n\r\n                        $(\".");


            #line 89 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, ".CreateRequestDialog .RequestTypeLink\").click(function () {\r\n                    " +
                                   "        window.location.href = $(this).attr(\"href\");\r\n                          " +
                                   "  $(\".");


            #line 91 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, ".CreateRequestDialog\").dialog(\"destroy\");\r\n                            return fal" +
                                   "se;\r\n                        });\r\n\r\n                        //setTimeout(functio" +
                                   "n () { $(\".");


            #line 95 "..\..\Views\Request\ListBody.cshtml"
                    WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                    WriteLiteralTo(__razor_template_writer, "\").gridReload(); }, 30000);\r\n                    });\r\n                </script>\r\n" +
                                   "");


            #line 98 "..\..\Views\Request\ListBody.cshtml"
                }


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "    \r\n            <script");

                WriteLiteralTo(__razor_template_writer, " src=\"/__r/lpp.mvc.controls/dropdown.js\"");

                WriteLiteralTo(__razor_template_writer, "></script>\r\n            <script>\r\n                $(function ($) {\r\n             " +
                               "       $(\".Grid.");


            #line 103 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, " th .ui-dropdown-button\").dropdown();\r\n\r\n                    $(\".Grid.");


            #line 105 "..\..\Views\Request\ListBody.cshtml"
                WriteTo(__razor_template_writer, id);


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, @" td.Name > a"").draggable({
                        helper: ""clone"",
                        appendTo: ""body"",
                        revert: true,
                        revertDuration: 100,
                        scope: ""Request"",
                        zIndex: 500,
                        opacity: 0.7
                    });
                });
            </script>

");


            #line 117 "..\..\Views\Request\ListBody.cshtml"


            #line default
            #line hidden

            #line 117 "..\..\Views\Request\ListBody.cshtml"
                if (Model.AllProjects != null)
                {
                    var m = Model.List.ModelForReload();
                    foreach (var p in Model.AllProjects.StartWith((Project)null))
                    {
                        m.ProjectID = p == null ? new Guid?() : p.ID;


            #line default
            #line hidden
                        WriteLiteralTo(__razor_template_writer, "                    <a");

                        WriteLiteralTo(__razor_template_writer, " style=\"display: none\"");

                        WriteAttributeTo(__razor_template_writer, "class", Tuple.Create("\r\n                        class=\"", 6477), Tuple.Create("\"", 6584)
                                         , Tuple.Create(Tuple.Create("", 6510), Tuple.Create("ProjectFilterLink", 6510), true)
                                         , Tuple.Create(Tuple.Create(" ", 6527), Tuple.Create("GridReloadLink", 6528), true)

            #line 123 "..\..\Views\Request\ListBody.cshtml"
                                         , Tuple.Create(Tuple.Create("", 6542), Tuple.Create <System.Object, System.Int32>(p == Model.Project ? " Selected" : ""

            #line default
            #line hidden
                                                                                                                           , 6542), false)
                                         );

                        WriteAttributeTo(__razor_template_writer, "href", Tuple.Create("\r\n                        href=\"", 6585), Tuple.Create("\"", 6672)

            #line 124 "..\..\Views\Request\ListBody.cshtml"
                                         , Tuple.Create(Tuple.Create("", 6617), Tuple.Create <System.Object, System.Int32>(Url.Action((RequestController c) => c.ListBody(m))

            #line default
            #line hidden
                                                                                                                           , 6617), false)
                                         );

                        WriteLiteralTo(__razor_template_writer, "\r\n                        data-project=\"");


            #line 125 "..\..\Views\Request\ListBody.cshtml"
                        WriteTo(__razor_template_writer, p == null ? "" : p.ID.ToString());


            #line default
            #line hidden
                        WriteLiteralTo(__razor_template_writer, "\"");

                        WriteLiteralTo(__razor_template_writer, ">");


            #line 125 "..\..\Views\Request\ListBody.cshtml"
                        WriteTo(__razor_template_writer, p == null ? "All Projects" : p.Name);


            #line default
            #line hidden
                        WriteLiteralTo(__razor_template_writer, "</a>\r\n");


            #line 126 "..\..\Views\Request\ListBody.cshtml"
                    }
                }


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "        </div> ");


            #line 128 "..\..\Views\Request\ListBody.cshtml"
            }))
                  );


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n");

            WriteLiteral("\r\n");

            WriteLiteral("\r\n");

            WriteLiteral("\r\n");
        }
        public override void Execute()
        {
            #line 4 "..\..\Views\SharedFolders\ContentsBody.cshtml"

            Layout = null;
            this.Stylesheet("Request.min.css");
            var id = Html.UniqueId();
            Func <RequestListGetModel, string> reloadUrl = m => Url.Action(( SharedFolderController cr ) => cr.ContentsBody(Model.Folder.ID, m));
            var removeUrl = Html.Raw(
                Url.Action(( SharedFolderController cr ) => cr.UnshareRequest(Model.Folder.ID.ToString(), "__req__"))
                .Replace("__req__", "' + requestId + '"));


            #line default
            #line hidden
            WriteLiteral(" \r\n\r\n");


            #line 14 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            Write(Html.Render <IGrid>()
                  .From(Model.Requests.List)
                  .Attributes(new { @class = "Grid RequestsGrid " + id })
                  .ReloadUrl(Url.Action((SharedFolderController c) => c.ContentsBody(Model.Folder.ID, Model.Requests.List.ModelForReload())))
                  .Id(r => r.Request.ID)
                  .Column(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "<a");

                WriteAttributeTo(__razor_template_writer, "href", Tuple.Create(" href=\"", 815), Tuple.Create("\"", 923)

            #line 19 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                                 , Tuple.Create(Tuple.Create("", 822), Tuple.Create <System.Object, System.Int32>(Url.Action <RequestController>(c => c.RequestView(item.Request.ID, Model.Folder.ID.ToString()))

            #line default
            #line hidden
                                                                                                                  , 822), false)
                                 );

                WriteAttributeTo(__razor_template_writer, "title", Tuple.Create(" title=\"", 924), Tuple.Create("\"", 950)

            #line 19 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                                 , Tuple.Create(Tuple.Create("", 932), Tuple.Create <System.Object, System.Int32>(item.Request.Name

            #line default
            #line hidden
                                                                                                                  , 932), false)
                                 );

                WriteLiteralTo(__razor_template_writer, ">");


            #line 19 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                WriteTo(__razor_template_writer, item.Request.Name);


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "</a>");


            #line 19 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            }),
                          c => c.Title("Name").Sortable("Name").Class("Name"))
                  .Column(r => r.Request.ID, o => o.Title("Id").NotSortable().Class("Id"))
                  .Column(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden

            #line 22 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                WriteTo(__razor_template_writer, RequestHelpers.RequestTypeName(Model.Requests, item));


            #line default
            #line hidden

            #line 22 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            }),
                          c => c.Title(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "Type ");


            #line 23 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                WriteTo(__razor_template_writer, RequestHelpers.RequestTypeFilter(Html, Model.Requests, reloadUrl));


            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, " ");


            #line 23 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            })).Sortable("Type").Class("Type"))
                  .If(Model.AllowRemove, g => g
                      .Column(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "<a");

                WriteLiteralTo(__razor_template_writer, " href=\"#\"");

                WriteLiteralTo(__razor_template_writer, " class=\"RemoveRequest\"");

                WriteLiteralTo(__razor_template_writer, ">Remove</a>");


            #line 25 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            }), o => o.Title("Remove").NotSortable())
                      )
                  .FooterSuffix(_ => RequestHelpers.PageSizeSelector(Html, Model.Requests, reloadUrl))
                  .With(o => o.NoDataMessage = item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "No Requests in this Folder");

                WriteLiteralTo(__razor_template_writer, " ");


            #line 28 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            }))
                  .If(Model.AllowEdit, g => g
                      .FooterSuffix(item => new System.Web.WebPages.HelperResult(__razor_template_writer => {
            #line default
            #line hidden
                WriteLiteralTo(__razor_template_writer, "<div");

                WriteLiteralTo(__razor_template_writer, " class=\"ActionButtons\"");

                WriteLiteralTo(__razor_template_writer, ">\r\n                            <button");

                WriteLiteralTo(__razor_template_writer, " class=\"ui-standard-button\"");

                WriteAttributeTo(__razor_template_writer, "onclick", Tuple.Create("\r\n                                onclick=\"", 1858), Tuple.Create("\"", 2019)
                                 , Tuple.Create(Tuple.Create("", 1901), Tuple.Create("window.nav.navigate(", 1901), true)
                                 , Tuple.Create(Tuple.Create(" ", 1921), Tuple.Create("\'", 1922), true)

            #line 32 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                                 , Tuple.Create(Tuple.Create("", 1923), Tuple.Create <System.Object, System.Int32>(Url.Action((SharedFolderController c) => c.Edit(Model.Folder.ID, Request.Url.LocalPath))

            #line default
            #line hidden
                                                                                                                   , 1923), false)
                                 , Tuple.Create(Tuple.Create("", 2016), Tuple.Create("\'", 2016), true)
                                 , Tuple.Create(Tuple.Create(" ", 2017), Tuple.Create(")", 2018), true)
                                 );

                WriteLiteralTo(__razor_template_writer, "\r\n                            >Edit This Folder</button>\r\n                       " +
                               " </div> ");


            #line 34 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            }))
                      )
                  );


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 37 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            if (Model.AllowRemove)
            {
            #line default
            #line hidden
                WriteLiteral("<script");

                WriteLiteral(" type=\"text/javascript\"");

                WriteLiteral(">\r\n    $$([\'");


            #line 39 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                Write(this.Resource("SharedFolders.js"));


            #line default
            #line hidden
                WriteLiteral("\'], function ($, sf) {\r\n        $(\".");


            #line 40 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                Write(id);


            #line default
            #line hidden
                WriteLiteral(@" a.RemoveRequest"").click(function () {
            var requestId = $(this).closest(""tr"").attr(""id"");
            if (!requestId || !confirm(""This request will be removed from this shared folder.\r\nContinue?""))
                return;

            sf.unshareRequest('");


            #line 45 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                Write(removeUrl);


            #line default
            #line hidden
                WriteLiteral("\', function () {\r\n                $(\".");


            #line 46 "..\..\Views\SharedFolders\ContentsBody.cshtml"
                Write(id);


            #line default
            #line hidden
                WriteLiteral("\").gridReload();\r\n            });\r\n        });\r\n    });\r\n</script>\r\n");


            #line 51 "..\..\Views\SharedFolders\ContentsBody.cshtml"
            }

            #line default
            #line hidden
        }