PageRenderTime 243ms CodeModel.GetById 100ms app.highlight 1ms RepoModel.GetById 140ms app.codeStats 0ms

/AnotherStartup/_SiteLayout.cshtml

#
Razor | 42 lines | 42 code | 0 blank | 0 comment | 1 complexity | f54159c375fffe59b87b4b37ff7e7660 MD5 | raw file
 1<!DOCTYPE html>
 2<html lang="en">
 3    <head>
 4        <meta charset="utf-8" />
 5        <title>My ASP.NET Web Page - @Page.Title</title>
 6        <link href="@Href("~/Styles/Site.css")" rel="stylesheet" />
 7        <link href="@Href("~/favicon.ico")" rel="shortcut icon" type="image/x-icon" />
 8    </head>
 9    <body>
10        <div id="page">
11            <div id="header">
12                <p class="site-title">My ASP.NET Web Page</p>
13                <div id="login">
14                    @if (WebSecurity.IsAuthenticated) {
15                        <p>
16                            Welcome <a href="@Href("~/Account/ChangePassword")" title="Change password">@WebSecurity.CurrentUserName</a>!
17                            <a href="@Href("~/Account/Logout")">Logout</a>
18                        </p>
19                    } else {
20                        <ul>
21                            <li><a href="@Href("~/Account/Register")">Register</a></li>
22                            <li><a href="@Href("~/Account/Login")">Login</a></li>
23                        </ul>
24                    }
25                </div>
26                <ul id="menu">
27                    <li><a href="@Href("~/")">Home</a></li>
28                    <li><a href="@Href("~/About")">About</a></li>
29                </ul>
30            </div>
31            <div id="main">
32                <div id="content">
33                    <h1>@Page.Title</h1>
34                    @RenderBody()
35                </div>
36                <div id="footer">
37                    &copy; @DateTime.Now.Year - My ASP.NET Web Page
38                </div>
39            </div>
40        </div>
41    </body>
42</html>