|
@using sBlog.Net.Models.Comments
@model sBlog.Net.Models.ViewPostOrPageModel
@{
ViewBag.Title = string.Format("{0} || {1}", Model.Post.PostTitle, Model.BlogName);
}
@if (Model.UserCanEdit)
{
<div style="float: right">
@Html.ActionLink("edit", "Edit", "Page", new { Area = "Admin", postID = Model.Post.PostID }, new { @class = "editLink" })
</div>
<br /><br />
}
@Html.Raw(Model.Post.PostContent)
<br /><br />
@if (Model.BlogSharingEnabled && Model.Post.CanBeShared)
{
@Html.Partial("SharingOptions", Model.SharingType)
<br /><br />
}
@if (!Model.DisqusEnabled)
{
@Html.Partial("PostComments", Model.Post)
<br />
if (Model.Post.UserCanAddComments)
{
@Html.Partial("UserComment", new CommentViewModel {Post = Model.Post, Comment = Model.CommentEntity})
}
}
else
{
@Html.Partial("DisqusComments", Model)
}
|
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!)