mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-04 22:33:15 +00:00
filter top communities to local when specified
This commit is contained in:
parent
7053e07432
commit
3bffe1cae1
|
@ -10,9 +10,11 @@
|
|||
|
|
||||
{{ $host := .Host }}
|
||||
{{ range $i, $c := .TopCommunities}}
|
||||
{{ if or (ne $state.Listing "Local") $c.Community.Local }}
|
||||
<a href="/{{$host}}/c/{{fullcname $c.Community}}">{{$c.Community.Name}}</a>
|
||||
<span> - </span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<a href="/{{$host}}/search?searchtype=Communities&sort=TopMonth" class="more">more »</a>
|
||||
</div>
|
||||
<div id="mycommunities">
|
||||
|
|
Loading…
Reference in a new issue