瀏覽代碼

hide section with user has no organizations

Unknwon 9 年之前
父節點
當前提交
dccfadf7b8
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      templates/user/profile.tmpl

+ 2 - 0
templates/user/profile.tmpl

@@ -57,11 +57,13 @@
 								</a>
 							</li>
 							*/}}
+							{{if .Orgs}}
 							<li>
 								{{range .Orgs}}
 									<a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.AvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="mini inverted"></a>
 								{{end}}
 							</li>
+							{{end}}
 							{{if and .IsSigned (ne .SignedUserName .Owner.Name)}}
 							<li class="follow">
 								{{if .SignedUser.IsFollowing .Owner.Id}}