diff options
author | Jimmy Praet <jimmy.praet@telenet.be> | 2022-05-07 17:49:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-07 17:49:43 +0200 |
commit | 38d72d40f132df8a6e90063f3e96a80048bf299e (patch) | |
tree | e1e87fc8130a8973b6f6aa1bcdacdc4ea40bcdcd /templates | |
parent | 672e5a752db8dd732ede058f97acf5336b651afb (diff) | |
download | gitea-38d72d40f132df8a6e90063f3e96a80048bf299e.tar.gz gitea-38d72d40f132df8a6e90063f3e96a80048bf299e.zip |
Only show accessible teams in dashboard dropdown list (#19642)
Fixes #19637
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index e995db81d8..7127abeb0b 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -61,7 +61,7 @@ <a class="{{if not $.Team}}active selected{{end}} item" title="{{.i18n.Tr "all"}}" href="{{$.Org.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}"> {{.i18n.Tr "all"}} </a> - {{range .OrgTeams}} + {{range .Teams}} {{if not .IncludesAllRepositories}} <a class="{{if $.Team}}{{if eq $.Team.ID .ID}}active selected{{end}}{{end}} item" title="{{.Name}}" href="{{$.Org.OrganisationLink}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}/{{.Name}}"> {{.Name}} |