diff options
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/repo_list.tmpl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 16507df16a..b8f4490c11 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -17,9 +17,13 @@ </div> </div> {{if .DescriptionHTML}}<p class="has-emoji">{{.DescriptionHTML}}</p>{{end}} - <div> - {{range .Topics}}<div class="ui green basic label topic">{{.}}</div>{{end}} - </div> + {{if .Topics }} + <div> + {{range .Topics}} + {{if ne . "" }}<div class="ui green basic label topic">{{.}}</div>{{end}} + {{end}} + </div> + {{end}} <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p> </div> {{else}} |