diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-04-01 01:31:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 19:31:53 +0200 |
commit | 420851ca1ff5c97cc31930f022daaff6f484793b (patch) | |
tree | 8fbf05e426c30db2ad2ea706d53cf2c60d4989c3 /templates/user | |
parent | c88547ce71a554091930e129c20776daf6da35ac (diff) | |
download | gitea-420851ca1ff5c97cc31930f022daaff6f484793b.tar.gz gitea-420851ca1ff5c97cc31930f022daaff6f484793b.zip |
Fix global packages enabled avaiable (#19276)
Fix #19275
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/profile.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index d761b84d6d..34ecf1afe2 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -87,9 +87,11 @@ <a class='{{if and (ne .TabName "activity") (ne .TabName "following") (ne .TabName "followers") (ne .TabName "stars") (ne .TabName "watching") (ne .TabName "projects")}}active{{end}} item' href="{{.Owner.HomeLink}}"> {{svg "octicon-repo"}} {{.i18n.Tr "user.repositories"}} </a> + {{if .IsPackageEnabled}} <a class='{{if eq .TabName "packages"}}active{{end}} item' href="{{.Owner.HomeLink}}/-/packages"> {{svg "octicon-package"}} {{.i18n.Tr "packages.title"}} </a> + {{end}} <a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity"> {{svg "octicon-rss"}} {{.i18n.Tr "user.activity"}} </a> |