|
@model sBlog.Net.Domain.Entities.PostEntity
<tr>
<td>
@{
var type = Model.EntryType == 1 ? "Post" : "Page";
}
<b>@Html.ActionLink(Model.PostTitle, "Edit", type, new { postID = Model.PostID }, new { @class = "mainLink" })</b><br /><br />
@Html.Partial("PostOptions", Model)
</td>
<td>
@Model.OwnerUserName
</td>
<td>
@Html.Partial("PostCategories", Model.Categories)
</td>
<td>
@Html.Partial("PostTags", Model.Tags)
</td>
<td>
@{
var url = Model.EntryType == 1 ? Url.RouteUrl("IndividualPost", new { year = Model.PostYear, month = Model.PostMonth, url = Model.PostUrl }) : Url.RouteUrl("Pages", new { pageUrl = Model.PostUrl });
}
<a href="@(url + "#user-comments")">@Model.Comments.Count</a>
</td>
<td>
@{
var date = Model.PostEditedDate ?? Model.PostAddedDate;
}
@date.ToLongDateString()
</td>
</tr>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Just another passionate software developer!
Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out
here. For the codeproject article regarding sBlog.Net click
here!
(Figuring out this section!)