Factoring, Refactoring
* App.master: * yavscModel.csproj: * UserPost.aspx: * UserPosts.aspx: * StatusChange.cs: * IContentProvider.cs: * NpgsqlContentProvider.cs: * BlogsController.cs: unwanted message "Blogs" * style.css: More visibility for messages and error
This commit is contained in:
parent
1307b62ecb
commit
71f1cfcf20
9 changed files with 49 additions and 29 deletions
|
|
@ -4,21 +4,13 @@
|
|||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="header1" runat="server">
|
||||
<h1 class="blogtitle"><%= Html.ActionLink(Model.Title,"UserPost",new{user=Model.UserName,title=Model.Title}) %> -
|
||||
<a href="/Blog/<%=Model.UserName%>"><img class="avatar" src="/Blogs/Avatar?user=<%=Model.UserName%>" alt=""/> <%=ViewData["BlogTitle"]%></a>
|
||||
<a href="/Blog/<%=Model.UserName%>">
|
||||
<img class="avatar" src="/Blogs/Avatar?user=<%=Model.UserName%>" alt="<%=Model.UserName%>"/> <%=ViewData["BlogTitle"]%></a>
|
||||
<asp:Literal runat="server" Text=" - " />
|
||||
<a href="/"> <%= YavscHelpers.SiteName %> </a> </h1>
|
||||
|
||||
<div class="metablog">(Id:<a href="/Blogs/UserPost/<%=Model.Id%>"><i><%=Model.Id%></i></a>, <%= Model.Posted.ToString("yyyy/MM/dd") %>
|
||||
- <%= Model.Modified.ToString("yyyy/MM/dd") %> <%= Model.Visible? "":", Invisible!" %>)
|
||||
<% if (Membership.GetUser()!=null)
|
||||
if (Membership.GetUser().UserName==Model.UserName)
|
||||
{ %>
|
||||
<%= Html.ActionLink("Editer","Edit", new { user=Model.UserName, title = Model.Title }, new { @class="actionlink" }) %>
|
||||
<%= Html.ActionLink("Supprimer","RemovePost", new { user=Model.UserName, title = Model.Title }, new { @class="actionlink" } ) %>
|
||||
<% } %>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
|
||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||
<div>
|
||||
<div class="blogpost">
|
||||
<% BBCodeHelper.Init(); %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue