@model Nop.Web.Models.Boards.SearchModel @using Nop.Core.Domain.Forums @using Nop.Services.Localization @using Nop.Web.Factories @using Nop.Web.Framework.TagHelpers.Shared @using Microsoft.AspNetCore.Mvc.TagHelpers @inject ILocalizationService localizationService @{ Layout = "_ColumnsOne"; //title NopHtml.AddTitleParts(T("Forum.PageTitle.Search").Text); //page class NopHtml.AppendPageCssClassParts("html-forum-search-page"); } @await Component.InvokeAsync(typeof(ForumBreadcrumbViewComponent))
| @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 }) | |