Try your search with a different keyword or use * as a wildcard.
@using Nop.Services.Localization
@using Nop.Web.Factories
@model ActiveDiscussionsModel
@inject ILocalizationService localizationService
@if (Model.ActiveDiscussionsFeedEnabled)
{
@T("Forum.RSS")
}
@T("Forum.ActiveDiscussions")
@{
var pager = await Html.PagerAsync(new PagerModel(localizationService)
{
PageSize = Model.TopicPageSize,
TotalRecords = Model.TopicTotalRecords,
PageIndex = Model.TopicPageIndex,
ShowTotalSummary = false,
RouteActionName = "ActiveDiscussionsPaged",
UseRouteLinks = true,
RouteValues = new ForumModelFactory.ForumActiveDiscussionsRouteValues()
});
}
@if (!string.IsNullOrEmpty(await pager.RenderHtmlContentAsync()))
{
@pager
}
@if (Model.ForumTopics.Count > 0)
{
@if (Model.AllowPostVoting)
{
}
@T("Forum.TopicTitle")
@T("Forum.Replies")
@T("Forum.Views")
@if (Model.AllowPostVoting)
{
@T("Forum.Votes")
}
@T("Forum.LatestPost")
@foreach (var topic in Model.ForumTopics)
{
@Html.RouteLink(topic.Subject, "TopicSlug", new { id = topic.Id, slug = topic.SeName })
@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 })
}
}
@if (!string.IsNullOrEmpty(await pager.RenderHtmlContentAsync()))
{
@pager
}
@if (Model.ViewAllLinkEnabled)
{
@Html.RouteLink(T("Forum.ActiveDiscussions.ViewAll").Text, "ActiveDiscussions", null)
}