-
- @T("Forum.Posted"): - @Model.PostCreatedOnStr +
+ + @T("Forum.Posted"): + @Model.PostCreatedOnStr + + + · + + @Model.VoteCount.ToString("N0") +
@@ -98,7 +103,7 @@ @Html.Hidden("Id", Model.Id)
- @if (Model.SignaturesEnabled & !String.IsNullOrEmpty(Model.FormattedSignature)) + @if (Model.SignaturesEnabled && Model.FormattedSignature.HasValue()) {
@Html.Raw(Model.FormattedSignature) @@ -112,10 +117,21 @@ @T("Forum.Top") - + + @if (Model.AllowVoting) + { + + + }
diff --git a/src/Presentation/SmartStore.Web/Views/Boards/Search.cshtml b/src/Presentation/SmartStore.Web/Views/Boards/Search.cshtml index 7e6cf51acc..6425113e07 100644 --- a/src/Presentation/SmartStore.Web/Views/Boards/Search.cshtml +++ b/src/Presentation/SmartStore.Web/Views/Boards/Search.cshtml @@ -139,26 +139,28 @@ \ No newline at end of file diff --git a/src/Presentation/SmartStore.Web/Views/Boards/Topic.cshtml b/src/Presentation/SmartStore.Web/Views/Boards/Topic.cshtml index 08c8b03b72..6596777acb 100644 --- a/src/Presentation/SmartStore.Web/Views/Boards/Topic.cshtml +++ b/src/Presentation/SmartStore.Web/Views/Boards/Topic.cshtml @@ -27,21 +27,21 @@
@if (Model.IsCustomerAllowedToEditTopic) { - + @T("Forum.EditTopic") } @if (Model.IsCustomerAllowedToDeleteTopic) { - + @T("Forum.DeleteTopic") } @if (Model.IsCustomerAllowedToMoveTopic) { - + @T("Forum.MoveTopic") @@ -52,32 +52,31 @@ @ButtonBar()
- @foreach (var post in @Model.ForumPostModels) + @foreach (var post in Model.ForumPostModels) { Html.RenderPartial("_ForumPost", post); }
@ButtonBar() -
@helper ButtonBar() { var pager = Html.SmartStore().Pager(Model.PostsPageIndex, Model.PostsPageSize, Model.PostsTotalRecords) .Name("paginator") + .QueryParam("page") .Size(PagerSize.Small) .Alignment(PagerAlignment.Centered) .Route("TopicSlug", new RouteValues { id = Model.Id, slug = Model.SeName });
- @if (Model.IsCustomerAllowedToSubscribe) { @@ -85,7 +84,7 @@ @Ajax.ActionLink(Model.WatchTopicText, "TopicWatch", - new { id = @Model.Id }, + new { id = Model.Id }, new AjaxOptions { HttpMethod = "Post", OnSuccess = "handleTopicWatch" }, new { @class = "watch-topic-link-button" })
@@ -93,4 +92,39 @@ @pager