From 2049948b0fef58c1bd12aae6d8838975c56ad932 Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 12 Nov 2018 19:38:46 +1000 Subject: [PATCH] Fixed a bug where the topic middle suffixes weren't showing up on the forum pages. Added a NoHeader() I forgot. --- gen_router.go | 6 +----- router_gen/routes.go | 2 +- templates/forum.html | 7 ++++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/gen_router.go b/gen_router.go index a14447b6..361cb05d 100644 --- a/gen_router.go +++ b/gen_router.go @@ -1912,11 +1912,7 @@ func (router *GenRouter) routeSwitch(w http.ResponseWriter, req *http.Request, u err = routes.PollVote(w,req,user,extraData) case "/poll/results/": counters.RouteViewCounter.Bump(114) - head, err := common.UserCheck(w,req,&user) - if err != nil { - return err - } - err = routes.PollResults(w,req,user,head,extraData) + err = routes.PollResults(w,req,user,extraData) } case "/accounts": switch(req.URL.Path) { diff --git a/router_gen/routes.go b/router_gen/routes.go index 4318ae33..78101afc 100644 --- a/router_gen/routes.go +++ b/router_gen/routes.go @@ -122,7 +122,7 @@ func buildPollRoutes() { pollGroup := newRouteGroup("/poll/") pollGroup.Routes( Action("routes.PollVote", "/poll/vote/", "extraData"), - View("routes.PollResults", "/poll/results/", "extraData"), + View("routes.PollResults", "/poll/results/", "extraData").NoHeader(), ) addRouteGroup(pollGroup) } diff --git a/templates/forum.html b/templates/forum.html index 605265bb..cc984244 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -95,9 +95,10 @@
-
- {{.PostCount}}
- {{.LikeCount}} +
+ {{.PostCount}} {{lang "topic_list.replies_suffix"}} + {{.LikeCount}} {{lang "topic_list.likes_suffix"}} + {{.ViewCount}} {{lang "topic_list.views_suffix"}}