From b9928588834a9aad1771ba79f1d6638cdc29904a Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 29 Dec 2016 12:58:24 -0200 Subject: Tab on user profile to show starred repos (#519) * Tab on user profile to show starred repos * Make golint happy and use transactions on StarRepo function * x -> sess * Use sess.Close() instead of sess.Rollback() * Add copyright * Fix lint --- templates/user/profile.tmpl | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'templates/user/profile.tmpl') diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 7734d94c99..cfb646ace1 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -75,23 +75,28 @@
- {{if ne .TabName "activity"}} - {{template "explore/repo_list" .}} - {{template "base/paginate" .}} - {{else}} -
+ + {{if eq .TabName "activity"}}
{{template "user/dashboard/feeds" .}}
+ {{else if eq .TabName "stars"}} +
+ {{template "explore/repo_list" .}} +
+ {{else}} + {{template "explore/repo_list" .}} + {{template "base/paginate" .}} {{end}}
-- cgit v1.2.3