<%@ Page Title="Billet" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master"%> <% Title = Model.Title+ " - " + ViewData ["BlogTitle"] ; %>

<% if (ViewData["Avatar"]!=null) { %> " alt="" id="logo"/> <% } %> <%= Html.ActionLink(Model.Title,"UserPost", new{user=Model.Author, title = Model.Title}, null) %> - <%= Html.ActionLink((string)ViewData ["BlogTitle"] ,"UserPosts",new{user=Model.Author}, null) %> - "><%= YavscHelpers.SiteName %>

<% foreach (var be in Model) { %>
<%= Html.Markdown(be.Content,"/bfiles/"+be.Id+"/") %> <% string username = Membership.GetUser().UserName; %> <% foreach (var c in (Comment[]) BlogManager.GetComments(be.Id)) { %>
" alt="<%=c.From%>"/> <%= Html.Markdown(c.CommentText) %> <% if ( username == Model.Author || c.From == username ) { %> <%= Html.ActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } , new { @class="actionlink" })%> <% } %>
<% } %> <% if (Membership.GetUser()!=null) { if (Membership.GetUser().UserName==be.Author) { %>
<%= Html.ActionLink("Editer","Edit", new { id = be.Id }, new { @class="actionlink" }) %> <%= Html.ActionLink("Supprimer","RemovePost", new { id = be.Id }, new { @class="actionlink" } ) %>
<% } %> <% } %>
<% } %>