summaryrefslogtreecommitdiff
path: root/external/aspnetwebstack/src/System.Web.WebPages.Administration/_Layout.cshtml
blob: 6d0f84baf3a30f1630a43e35859d84652678b030 (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
@* Generator: WebPage *@

@{
    string title = Page.Title;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <title>@AdminResources.AdminModuleTitle@if (!title.IsEmpty()) { <text>- @title </text> }</title>
      <link href="@Href("Site.css")" rel="stylesheet" type="text/css" />
      @RenderSection("Head", required: false)
   </head>
   <body>
      <div id="page">
         <div id="header" class="group">
            <h1 class="site-title">
                <img src="@Href("images/aspLogo.gif")" alt="@AdminResources.LogoLabel" />
                <span class="aspnet">ASP.NET</span>&nbsp;@AdminResources.AdminModuleDisplayTitle
            </h1>
             <div id="settings">
                <span>
                    @RenderSection("PageSettings", required: false)
                    &nbsp;
                    @if (AdminSecurity.IsAuthenticated(Request)) {
                        <a href="@Href("Logout")">@AdminResources.Logout</a>
                    }
                </span>
             </div>
           </div>
           <div class="clear"></div>
           <div id="breadcrumbs" class="group">
           <ul>
           @{
                var firstCrumb = true;
                int current = 0;
            }
            @foreach(var item in Page.BreadCrumbs){
                current++;
                if(firstCrumb) {
                    firstCrumb = false;
                }
                else {
                    <li><span>&gt;</span></li>
                }
                <li @((current == Page.BreadCrumbs.Count) ? @Html.Raw("class=\"selected\"") : null)>
                <a href="@item.Item2" title="@item.Item1">@item.Item1</a>
                </li>
           }
           </ul>

        </div>
        <div id="main">
            @{
                string sectionTitle = Page.SectionTitle ?? title;
            }
            @if (!sectionTitle.IsEmpty()) {
                <div class="page-title">
                    <h1>@sectionTitle</h1>
                    @if (!String.IsNullOrEmpty(Page.Desc)) {
                        <span>@Page.Desc</span>
                    }
                </div>
            }          
            @RenderBody()
            <p />
        </div>
        <div id="footer">
            @RenderSection("Footer", required: false)
        </div>
      </div>
   </body>
</html>