1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

small fix

This commit is contained in:
slene 2014-03-17 23:41:29 +08:00
parent 4249cec68c
commit d6f3333e48

View file

@ -102,7 +102,7 @@ func Single(ctx *middleware.Context, params martini.Params) {
if readmeFile.Size > 1024*1024 || readmeFile.Filemode != git.FileModeBlob { if readmeFile.Size > 1024*1024 || readmeFile.Filemode != git.FileModeBlob {
ctx.Data["FileIsLarge"] = true ctx.Data["FileIsLarge"] = true
} else if blob, err := readmeFile.LookupBlob(); err != nil { } else if blob, err := readmeFile.LookupBlob(); err != nil {
ctx.Data["FileIsLarge"] = true ctx.Data["ReadmeExist"] = false
} else { } else {
// current repo branch link // current repo branch link
urlPrefix := "http://" + base.Domain + "/" + ctx.Repo.Owner.LowerName + "/" + urlPrefix := "http://" + base.Domain + "/" + ctx.Repo.Owner.LowerName + "/" +