aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/org/teams.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/org/teams.go')
-rw-r--r--routers/web/org/teams.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go
index bd78832103..b03b18bd9c 100644
--- a/routers/web/org/teams.go
+++ b/routers/web/org/teams.go
@@ -410,11 +410,15 @@ func TeamRepositories(ctx *context.Context) {
return
}
- if err := ctx.Org.Team.LoadRepositories(ctx); err != nil {
- ctx.ServerError("GetRepositories", err)
+ repos, err := repo_model.GetTeamRepositories(ctx, &repo_model.SearchTeamRepoOptions{
+ TeamID: ctx.Org.Team.ID,
+ })
+ if err != nil {
+ ctx.ServerError("GetTeamRepositories", err)
return
}
ctx.Data["Units"] = unit_model.Units
+ ctx.Data["TeamRepos"] = repos
ctx.HTML(http.StatusOK, tplTeamRepositories)
}