Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

_ActiveTopics.cshtml

@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) { } @if (Model.AllowPostVoting) { } @foreach (var topic in Model.ForumTopics) { @if (Model.AllowPostVoting) { } }
@T("Forum.TopicTitle") @T("Forum.Replies") @T("Forum.Views") @T("Forum.Votes") @T("Forum.LatestPost")
@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 @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)
}