Browse Source

#1773

update
tags/v1.22.5.1^2
chenyifan01 3 years ago
parent
commit
3d5e590d71
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      routers/repo/view.go

+ 5
- 0
routers/repo/view.go View File

@@ -608,6 +608,11 @@ func getContributorInfo(contributorInfos []*ContributorInfo, email string) *Cont

// Home render repository home page
func Home(ctx *context.Context) {
if ctx.Repo.CanEnableEditor() {
ctx.Data["CanEditFile"] = true
} else {
ctx.Data["CanEditFile"] = false
}
if len(ctx.Repo.Units) > 0 {
//get repo contributors info
contributors, err := git.GetContributors(ctx.Repo.Repository.RepoPath(), ctx.Repo.BranchName)


Loading…
Cancel
Save