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:
parent
9f273a99f5
commit
2049948b0f
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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}} {{lang "topic_list.replies_suffix"}}</span>
|
||||
<span class="likeCount">{{.LikeCount}} {{lang "topic_list.likes_suffix"}}</span>
|
||||
<span class="viewCount">{{.ViewCount}} {{lang "topic_list.views_suffix"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rowitem topic_right passive datarow">
|
||||
|
|
Loading…
Reference in New Issue