@model ForumPageModel @using Nop.Core.Domain.Forums @using Nop.Services.Localization @inject ILocalizationService localizationService @{ Layout = "_ColumnsOne"; //title NopHtml.AddTitleParts(Model.Name); //page class NopHtml.AppendPageCssClassParts("html-forum-page"); }
@Model.Description
| @T("Forum.TopicTitle") | @T("Forum.Replies") | @T("Forum.Views") | @if (Model.AllowPostVoting) {@T("Forum.Votes") | }@T("Forum.LatestPost") | |
|---|---|---|---|---|---|
|
@Html.RouteLink(topic.Subject, "TopicSlug", new { id = topic.Id, slug = topic.SeName })
@if (!string.IsNullOrEmpty(topicText))
{
@topicText
}
@if (topic.NumPosts > Model.PostsPageSize)
{
@await Html.ForumTopicSmallPagerAsync(topic)
}
@if (topic.CustomerId > 0)
{
if (topic.AllowViewingProfiles)
{
@Html.RouteLink(topic.CustomerName, "CustomerProfile", new { Id = topic.CustomerId })
}
else
{
@topic.CustomerName
}
}
|
@topic.NumReplies | @topic.Views | @if (Model.AllowPostVoting) {@topic.Votes | }@await Component.InvokeAsync(typeof(ForumLastPostViewComponent), new { forumPostId = topic.LastPostId, showTopic = false }) | |