yavsc/web/Models/App.master

68 lines
1.9 KiB
Plaintext

10 years ago
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="/style.css"/>
<link rel="icon" type="image/png" href="/favicon.png" />
<link href='http://fonts.googleapis.com/css?family=Dancing+Script:400,700' rel='stylesheet' type='text/css'/>
<asp:ContentPlaceHolder id="init" runat="server">
</asp:ContentPlaceHolder>
10 years ago
</head>
<body>
<header>
<div id="login">
<%= Html.ActionLink( YavscHelpers.SiteName, "Index", "Home" ) %>
10 years ago
<% if (Membership.GetUser()==null) { %>
<%= Html.ActionLink("Login", "Login", "Account", new { returnUrl=Request.Url.PathAndQuery }, null ) %>
<% } else { %>
<%= HttpContext.Current.User.Identity.Name %>
<%= Html.ActionLink( "Logout", "Logout", "Account", new { returnUrl=Request.Url.PathAndQuery }, null) %>
<%= Html.ActionLink( "Poster", "Post", "Blogs" ) %>
<%= Html.ActionLink( "Profile", "Profile", "Account" ) %>
<% } %>
10 years ago
10 years ago
</div>
<!-- Use taking care of keeping the title to be the same in the head and h1 sections -->
<asp:ContentPlaceHolder ID="overHeaderOne" runat="server">
<h1><a href="<%= Html.Encode(Request.Url.AbsoluteUri.ToString()) %>">
<%= Page.Title %>
</a></h1>
</asp:ContentPlaceHolder>
10 years ago
<% if (ViewData["Error"]!=null) { %>
<div class="error">
10 years ago
<%= Html.Encode(ViewData["Error"]) %>
</div>
<% } %>
<% if (ViewData["Message"]!=null) { %>
<div class="message">
10 years ago
<%= Html.Encode(ViewData["Message"]) %>
</div>
<% } %>
<!-- a place to add some meta information, under the title -->
<asp:ContentPlaceHolder ID="header" runat="server">
10 years ago
</asp:ContentPlaceHolder>
</header>
<main>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</main>
<footer>
<hr/>
<%= string.Join("\n",Yavsc.ThanksHelper.Links()) %>
</footer>
</body>
</html>