* App.master: little redesign

* Profile.aspx: simpler is better
vnext
Paul Schneider 10 years ago
parent 685c03b37e
commit 8f9a1e3e04
2 changed files with 5 additions and 10 deletions

@ -13,18 +13,18 @@
<body>
<header>
<div id="login">
<%= Html.ActionLink( YavscHelpers.SiteName, "Index", "Home" ) %>
<% if (Membership.GetUser()==null) { %>
<% if (Membership.GetUser()==null) { %>
<%= Html.ActionLink( YavscHelpers.SiteName, "Index", "Home" ) %>
<%= Html.ActionLink("Login", "Login", "Account", new { returnUrl=Request.Url.PathAndQuery }, null ) %>
<% } else { %>
<%= HttpContext.Current.User.Identity.Name %>
<%= HttpContext.Current.User.Identity.Name %> @ <%= Html.ActionLink( YavscHelpers.SiteName, "Index", "Home" ) %>
<%= Html.ActionLink( "Logout", "Logout", "Account", new { returnUrl=Request.Url.PathAndQuery }, null) %>
<%= Html.ActionLink( "Poster", "Post", "Blogs" ) %>
<%= Html.ActionLink( "Profile", "Profile", "Account" ) %>
<%= Html.ActionLink( "Logout", "Logout", "Account", new { returnUrl=Request.Url.PathAndQuery }, null) %>
<% } %>

@ -1,12 +1,7 @@
<%@ Page Title="Profile" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<yavscModel.RolesAndMembers.Profile>" %>
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
<% Title = ViewData["UserName"]+"'s profile" %>
</asp:Content>
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
<h1><%=ViewData["UserName"]%>'s profile - <a href="/"><%=YavscHelpers.SiteName%></a></h1>
<p></p>
<% Title = ViewData["UserName"]+" at "+ YavscHelpers.SiteName +" - profile edition" ; %>
</asp:Content>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">

Loading…