* App.master: little redesign
* Profile.aspx: simpler is better
This commit is contained in:
@ -13,18 +13,18 @@
|
|||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<div id="login">
|
<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 ) %>
|
<%= Html.ActionLink("Login", "Login", "Account", new { returnUrl=Request.Url.PathAndQuery }, null ) %>
|
||||||
|
|
||||||
<% } else { %>
|
<% } 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( "Poster", "Post", "Blogs" ) %>
|
||||||
<%= Html.ActionLink( "Profile", "Profile", "Account" ) %>
|
<%= 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>" %>
|
<%@ 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">
|
<asp:Content ContentPlaceHolderID="init" ID="init1" runat="server">
|
||||||
<% Title = ViewData["UserName"]+"'s profile" %>
|
<% Title = ViewData["UserName"]+" at "+ YavscHelpers.SiteName +" - profile edition" ; %>
|
||||||
</asp:Content>
|
|
||||||
|
|
||||||
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
|
|
||||||
<h1><%=ViewData["UserName"]%>'s profile - <a href="/"><%=YavscHelpers.SiteName%></a></h1>
|
|
||||||
<p></p>
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
|
Reference in New Issue
Block a user