aboutsummaryrefslogtreecommitdiff
path: root/routers/user/user.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 03:39:18 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 03:39:18 -0400
commit57bc2d1ca0bfc3ba90e6d85309dba39415c6db73 (patch)
tree8d452408dbc3f89ac3a0a393ad5eadd80370f167 /routers/user/user.go
parentadedd9181c07ed926bf5835623293df4fcc706d2 (diff)
Add update user profile back end, add new gitignore and license, add template data to public profile page
Diffstat (limited to 'routers/user/user.go')
-rw-r--r--routers/user/user.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/user/user.go b/routers/user/user.go
index 59177a47..2ce158b6 100644
--- a/routers/user/user.go
+++ b/routers/user/user.go
@@ -43,8 +43,7 @@ func Profile(params martini.Params, r render.Render, data base.TmplData, session
return
}
- data["Avatar"] = user.Avatar
- data["Username"] = user.Name
+ data["Owner"] = user
r.HTML(200, "user/profile", data)
}