1
0
Fork 0
forked from forgejo/forgejo

Add weibo oauth

This commit is contained in:
Unknown 2014-04-13 21:00:12 -04:00
parent 4b9b8024ba
commit d2b53dd43b
20 changed files with 198 additions and 21 deletions

View file

@ -123,6 +123,13 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
ctx.Repo.GitRepo = gitRepo
ctx.Repo.RepoLink = "/" + user.Name + "/" + repo.Name
tags, err := ctx.Repo.GitRepo.GetTags()
if err != nil {
ctx.Handle(500, "RepoAssignment(GetTags))", err)
return
}
ctx.Repo.Repository.NumTags = len(tags)
ctx.Data["Title"] = user.Name + "/" + repo.Name
ctx.Data["Repository"] = repo
ctx.Data["Owner"] = user