Fixes missing assets
* UserPost.aspx: Fixes the anonymous access ! * drummer-652345_1280.jpg: * musician-923526_1280.jpg: * an-pierle-876094_1280.jpg: * drummer-652345_1280.s.jpg: * helix-nebula-1400x1400.jpg: * musician-923526_1280.s.jpg: * live-concert-388160_1280.jpg: * helix-nebula-1400x1400.s.jpg: * live-concert-388160_1280.s.jpg: initial import
This commit is contained in:
parent
5da977daef
commit
501199ed70
11 changed files with 16 additions and 2 deletions
|
|
@ -20,11 +20,11 @@
|
|||
<div class="post">
|
||||
<%= Html.Markdown(be.Content,"/bfiles/"+be.Id+"/") %>
|
||||
|
||||
<% string username = Membership.GetUser().UserName; %>
|
||||
<% string username = Membership.GetUser()==null ? null : Membership.GetUser().UserName; %>
|
||||
<% foreach (var c in (Comment[]) BlogManager.GetComments(be.Id)) { %>
|
||||
<div class="comment" style="min-height:32px;"> <img style="clear:left;float:left;max-width:32px;max-height:32px;margin:.3em;" src="<%= Url.Content("~/Account/Avatar/"+c.From) %>" alt="<%=c.From%>"/>
|
||||
<%= Html.Markdown(c.CommentText) %>
|
||||
<% if ( username == Model.Author || c.From == username ) { %>
|
||||
<% if (Model.Author == username || c.From == username ) { %>
|
||||
<%= Html.ActionLink("Supprimer","RemoveComment", new { cmtid = c.Id } , new { @class="actionlink" })%>
|
||||
<% } %>
|
||||
</div><% } %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue