summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorExMex <great.mafia2010@gmail.com>2016-01-12 03:09:59 +0100
committerExMex <great.mafia2010@gmail.com>2016-01-12 03:09:59 +0100
commitf610bfa8a2ccaf195fe89866da55879436a202d8 (patch)
tree415e9f5500334b03ca99311cf4f1b0bac568e8db /routers/user
parentfc4a4d38d16e47fe2584bd574872929669de42c1 (diff)
downloadgitea-f610bfa8a2ccaf195fe89866da55879436a202d8.tar.gz
gitea-f610bfa8a2ccaf195fe89866da55879436a202d8.zip
Added organization display on profile
Fixed "Follower" Icon too big
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/profile.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index 915cf86c61..3a25363818 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -74,6 +74,13 @@ func Profile(ctx *middleware.Context) {
ctx.Data["Title"] = u.DisplayName()
ctx.Data["PageIsUserProfile"] = true
ctx.Data["Owner"] = u
+
+ orgs, err := models.GetOwnedOrgsByUserIDDesc(u.Id, "updated")
+ if err != nil {
+ ctx.Handle(500, "GetOwnedOrgsByUserIDDesc", err)
+ return
+ }
+ ctx.Data["Orgs"] = orgs
tab := ctx.Query("tab")
ctx.Data["TabName"] = tab