add topic counts to the search and filter widget

This commit is contained in:
Azareal 2020-02-07 11:51:37 +10:00
parent 158b1de7bc
commit 812471d15f
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,6 @@
<input class="widget_search_input" name="widget_search" placeholder="Search" type="search" /> <input class="widget_search_input" name="widget_search" placeholder="Search" type="search" />
</div> </div>
<div class="rowblock filter_list widget_filter"> <div class="rowblock filter_list widget_filter">
{{range .Forums}} <div class="rowitem filter_item{{if .Selected}} filter_selected{{end}}" data-fid="{{.ID}}"><a href="/topics/?fids={{.ID}}" rel="nofollow">{{.Name}}</a></div> {{range .Forums}} <div class="rowitem filter_item{{if .Selected}} filter_selected{{end}}" data-fid={{.ID}}><a href="/topics/?fids={{.ID}}" rel="nofollow">{{.Name}} ({{.TopicCount}})</a></div>
{{end}} {{end}}
</div> </div>