aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2022-05-07 17:49:43 +0200
committerGitHub <noreply@github.com>2022-05-07 17:49:43 +0200
commit38d72d40f132df8a6e90063f3e96a80048bf299e (patch)
treee1e87fc8130a8973b6f6aa1bcdacdc4ea40bcdcd /templates
parent672e5a752db8dd732ede058f97acf5336b651afb (diff)
downloadgitea-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.tmpl2
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}}