From dccfadf7b80b0b59e28dd64f71560a3dd82a424c Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Thu, 14 Jan 2016 21:29:25 +0800
Subject: [PATCH] hide section with user has no organizations

---
 templates/user/profile.tmpl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 6591b45491..410aef797a 100644
--- a/templates/user/profile.tmpl
+++ b/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}}