Fixed a bug where the topic middle suffixes weren't showing up on the forum pages.

Added a NoHeader() I forgot.
This commit is contained in:
Azareal 2018-11-12 19:38:46 +10:00
parent 9f273a99f5
commit 2049948b0f
3 changed files with 6 additions and 9 deletions

View File

@ -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) {

View File

@ -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)
}

View File

@ -95,9 +95,10 @@
</div>
</div>
<div class="topic_middle">
<div class="topic_inner_middle rowsmall">
<span class="replyCount">{{.PostCount}}</span><br />
<span class="likeCount">{{.LikeCount}}</span>
<div class="topic_middle_inside rowsmall">
<span class="replyCount">{{.PostCount}}&nbsp;{{lang "topic_list.replies_suffix"}}</span>
<span class="likeCount">{{.LikeCount}}&nbsp;{{lang "topic_list.likes_suffix"}}</span>
<span class="viewCount">{{.ViewCount}}&nbsp;{{lang "topic_list.views_suffix"}}</span>
</div>
</div>
<div class="rowitem topic_right passive datarow">