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)
|
err = routes.PollVote(w,req,user,extraData)
|
||||||
case "/poll/results/":
|
case "/poll/results/":
|
||||||
counters.RouteViewCounter.Bump(114)
|
counters.RouteViewCounter.Bump(114)
|
||||||
head, err := common.UserCheck(w,req,&user)
|
err = routes.PollResults(w,req,user,extraData)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
err = routes.PollResults(w,req,user,head,extraData)
|
|
||||||
}
|
}
|
||||||
case "/accounts":
|
case "/accounts":
|
||||||
switch(req.URL.Path) {
|
switch(req.URL.Path) {
|
||||||
|
|
|
@ -122,7 +122,7 @@ func buildPollRoutes() {
|
||||||
pollGroup := newRouteGroup("/poll/")
|
pollGroup := newRouteGroup("/poll/")
|
||||||
pollGroup.Routes(
|
pollGroup.Routes(
|
||||||
Action("routes.PollVote", "/poll/vote/", "extraData"),
|
Action("routes.PollVote", "/poll/vote/", "extraData"),
|
||||||
View("routes.PollResults", "/poll/results/", "extraData"),
|
View("routes.PollResults", "/poll/results/", "extraData").NoHeader(),
|
||||||
)
|
)
|
||||||
addRouteGroup(pollGroup)
|
addRouteGroup(pollGroup)
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,9 +95,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="topic_middle">
|
<div class="topic_middle">
|
||||||
<div class="topic_inner_middle rowsmall">
|
<div class="topic_middle_inside rowsmall">
|
||||||
<span class="replyCount">{{.PostCount}}</span><br />
|
<span class="replyCount">{{.PostCount}} {{lang "topic_list.replies_suffix"}}</span>
|
||||||
<span class="likeCount">{{.LikeCount}}</span>
|
<span class="likeCount">{{.LikeCount}} {{lang "topic_list.likes_suffix"}}</span>
|
||||||
|
<span class="viewCount">{{.ViewCount}} {{lang "topic_list.views_suffix"}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rowitem topic_right passive datarow">
|
<div class="rowitem topic_right passive datarow">
|
||||||
|
|
Loading…
Reference in New Issue