mirror of https://github.com/go-gitea/gitea.git
Fixes #19637
This commit is contained in:
parent
59d132f0b3
commit
c8a83ace59
|
@ -70,12 +70,6 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
|
||||||
org := ctx.Org.Organization
|
org := ctx.Org.Organization
|
||||||
ctx.Data["Org"] = org
|
ctx.Data["Org"] = org
|
||||||
|
|
||||||
teams, err := org.LoadTeams()
|
|
||||||
if err != nil {
|
|
||||||
ctx.ServerError("LoadTeams", err)
|
|
||||||
}
|
|
||||||
ctx.Data["OrgTeams"] = teams
|
|
||||||
|
|
||||||
// Admin has super access.
|
// Admin has super access.
|
||||||
if ctx.IsSigned && ctx.User.IsAdmin {
|
if ctx.IsSigned && ctx.User.IsAdmin {
|
||||||
ctx.Org.IsOwner = true
|
ctx.Org.IsOwner = true
|
||||||
|
|
|
@ -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}}">
|
<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"}}
|
{{.i18n.Tr "all"}}
|
||||||
</a>
|
</a>
|
||||||
{{range .OrgTeams}}
|
{{range .Teams}}
|
||||||
{{if not .IncludesAllRepositories}}
|
{{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}}">
|
<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}}
|
{{.Name}}
|
||||||
|
|
Loading…
Reference in New Issue