diff options
author | Andrey Nering <andrey.nering@gmail.com> | 2016-12-29 12:58:24 -0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-29 22:58:24 +0800 |
commit | b9928588834a9aad1771ba79f1d6638cdc29904a (patch) | |
tree | 790d6d87a1565076a1fd06d28618d465366b9350 /templates/base | |
parent | 2d1a1fce934cb87cc67b85083d342b14bb52b780 (diff) | |
download | gitea-b9928588834a9aad1771ba79f1d6638cdc29904a.tar.gz gitea-b9928588834a9aad1771ba79f1d6638cdc29904a.zip |
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
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index a114b8dac5..fe14742510 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -116,6 +116,10 @@ <i class="octicon octicon-person"></i> {{.i18n.Tr "your_profile"}}<!-- Your profile --> </a> + <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars"> + <i class="octicon octicon-star"></i> + {{.i18n.Tr "your_starred"}} + </a> <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings"> <i class="octicon octicon-settings"></i> {{.i18n.Tr "your_settings"}}<!-- Your settings --> |