forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_pagestart.cshtml
More file actions
30 lines (22 loc) · 767 Bytes
/
_pagestart.cshtml
File metadata and controls
30 lines (22 loc) · 767 Bytes
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
@* Generator: WebPage *@
@{
// 404 if the admin page isn't available
if (!SiteAdmin.Available) {
Response.SetStatus(HttpStatusCode.NotFound);
return;
}
AdminSecurity.Authorize(this);
}
@{
// Set up layout values
var breadCrumbs = new List<Tuple<string, string>>();
if (SiteAdmin.Modules.Any()) {
breadCrumbs.Add(Tuple.Create(AdminResources.AdminHome, Href(SiteAdmin.AdminVirtualPath)));
}
PageData["BreadCrumbs"] = breadCrumbs;
Layout = "_Layout.cshtml";
HtmlHelper.ValidationSummaryClass = "message error";
HtmlHelper.ValidationInputCssClassName = "validation-error";
// Force IE9 standards mode rendering
Response.AddHeader("X-UA-Compatible", "IE=Edge");
}