Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_Layout.generated.cs « System.Web.WebPages.Administration « src - github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: be9ea3de89da2c3e11e6f169eaf8abc28041f187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#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