@model ProfilePostsModel
@using SmartStore.Web;
@using SmartStore.Web.Models.Profile;
@using SmartStore.Web.Framework.UI;
@if (Model.Posts.Count > 0)
{
for (int i = 0; i < Model.Posts.Count; i++)
{
var item = Model.Posts[i];
@T("Profile.Topic"):
@Html.RouteLink(item.ForumTopicTitle, "TopicSlug", new { id = item.ForumTopicId, slug = item.ForumTopicSlug })
@T("Profile.PostedOn"): @item.Posted
@Html.Raw(item.ForumPostText)
}
}
else
{
@T("Profile.LatestPosts.NoPosts")
}
@if (Model.TotalPages > 1)
{
@Html.SmartStore().Pager(Model).Name("paginator").Route("CustomerProfile", ViewData["PagerRouteValues"])
}