|
@model sBlog.Net.Models.BlogPostPageViewModel
@{
ViewBag.Title = string.Format("Posts by {0} || {1} || page {2}", Model.AuthorDisplayName, Model.BlogName.ToLower(), Model.CurrentPageNumber);
}
@Html.Partial("DisqusCounts", Model)
@if (!Model.Any)
{
<div>there are no posts for the selected category.</div>
}
@foreach (var post in Model.Posts)
{
@Html.Partial("Post", post)
}
<br />
@if (Model.Any && Model.PreviousPageValid)
{
<div style="float: left">
@Html.RouteLink("<< Previous Page", "AuthorPostsPaged", new { authorName = Model.AuthorName, pageNumber = Model.PreviousPageNumber }, new { @class = "link" })
</div>
}
@if (Model.Any && Model.NextPageValid)
{
<div style="float: right">
@Html.RouteLink("Next Page >>", "AuthorPostsPaged", new { authorName = Model.AuthorName, pageNumber = Model.NextPageNumber }, new { @class = "link" })
</div>
}
|
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!)