Files
linux-packaging-mono/external/aspnetwebstack/src/System.Web.WebPages.Administration/_Layout.generated.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

233 lines
5.8 KiB
C#

#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.225
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace System.Web.WebPages.Administration
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Helpers;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using System.Web.WebPages.Html;
[System.Web.WebPages.PageVirtualPathAttribute("~/_Layout.cshtml")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorSingleFileGenerator", "1.0.0.0")]
public class Layout_cshtml : System.Web.WebPages.WebPage
{
#line hidden
// Resolve package relative syntax
// Also, if it comes from a static embedded resource, change the path accordingly
public override string Href(string virtualPath, params object[] pathParts) {
virtualPath = ApplicationPart.ProcessVirtualPath(GetType().Assembly, VirtualPath, virtualPath);
return base.Href(virtualPath, pathParts);
}
public Layout_cshtml()
{
}
protected System.Web.HttpApplication ApplicationInstance
{
get
{
return ((System.Web.HttpApplication)(Context.ApplicationInstance));
}
}
public override void Execute()
{
WriteLiteral("\r\n\r\n");
string title = Page.Title;
WriteLiteral("\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/" +
"xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n " +
"<head>\r\n <title>");
Write(AdminResources.AdminModuleTitle);
if (!title.IsEmpty()) {
WriteLiteral(" ");
WriteLiteral("- ");
Write(title);
WriteLiteral(" ");
WriteLiteral(" ");
}
WriteLiteral("</title>\r\n <link href=\"");
Write(Href("Site.css"));
WriteLiteral("\" rel=\"stylesheet\" type=\"text/css\" />\r\n ");
Write(RenderSection("Head", required: false));
WriteLiteral("\r\n </head>\r\n <body>\r\n <div id=\"page\">\r\n <div id=\"header\" class=\"" +
"group\">\r\n <h1 class=\"site-title\">\r\n <img src=\"");
Write(Href("images/aspLogo.gif"));
WriteLiteral("\" alt=\"");
Write(AdminResources.LogoLabel);
WriteLiteral("\" />\r\n <span class=\"aspnet\">ASP.NET</span>&nbsp;");
Write(AdminResources.AdminModuleDisplayTitle);
WriteLiteral("\r\n </h1>\r\n <div id=\"settings\">\r\n <span>\r\n " +
" ");
Write(RenderSection("PageSettings", required: false));
WriteLiteral("\r\n &nbsp;\r\n");
if (AdminSecurity.IsAuthenticated(Request)) {
WriteLiteral(" <a href=\"");
Write(Href("Logout"));
WriteLiteral("\">");
Write(AdminResources.Logout);
WriteLiteral("</a>\r\n");
}
WriteLiteral(" </span>\r\n </div>\r\n </div>\r\n <div " +
"class=\"clear\"></div>\r\n <div id=\"breadcrumbs\" class=\"group\">\r\n " +
" <ul>\r\n");
var firstCrumb = true;
int current = 0;
foreach(var item in Page.BreadCrumbs){
current++;
if(firstCrumb) {
firstCrumb = false;
}
else {
WriteLiteral(" <li><span>&gt;</span></li>\r\n");
}
WriteLiteral(" <li ");
Write((current == Page.BreadCrumbs.Count) ? @Html.Raw("class=\"selected\"") : null);
WriteLiteral(">\r\n <a href=\"");
Write(item.Item2);
WriteLiteral("\" title=\"");
Write(item.Item1);
WriteLiteral("\">");
Write(item.Item1);
WriteLiteral("</a>\r\n </li>\r\n");
}
WriteLiteral(" </ul>\r\n\r\n </div>\r\n <div id=\"main\">\r\n");
string sectionTitle = Page.SectionTitle ?? title;
if (!sectionTitle.IsEmpty()) {
WriteLiteral(" <div class=\"page-title\">\r\n <h1>");
Write(sectionTitle);
WriteLiteral("</h1>\r\n");
if (!String.IsNullOrEmpty(Page.Desc)) {
WriteLiteral(" <span>");
Write(Page.Desc);
WriteLiteral("</span>\r\n");
}
WriteLiteral(" </div>\r\n");
}
WriteLiteral(" ");
Write(RenderBody());
WriteLiteral("\r\n <p />\r\n </div>\r\n <div id=\"footer\">\r\n ");
Write(RenderSection("Footer", required: false));
WriteLiteral("\r\n </div>\r\n </div>\r\n </body>\r\n</html>");
}
}
}
#pragma warning restore 1591