diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-05-12 21:50:39 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-13 09:50:39 +0800 |
commit | f6828e0b66933cfc4b4699037ab80dcf5286d9e4 (patch) | |
tree | cbbae3912f8f5c5240d041204e05df76438d9912 /templates/explore | |
parent | c14870c5ac52bf9d2d8b884222b4743accf9d929 (diff) | |
download | gitea-f6828e0b66933cfc4b4699037ab80dcf5286d9e4.tar.gz gitea-f6828e0b66933cfc4b4699037ab80dcf5286d9e4.zip |
Fix blank topic on explore repo list (#3956)
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}} |