mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
linenums
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/codegangsta/martini"
|
||||
@@ -95,6 +96,7 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||
} else {
|
||||
ctx.Data["IsFile"] = true
|
||||
ctx.Data["FileName"] = repoFile.Name
|
||||
ctx.Data["FileExt"] = path.Ext(repoFile.Name)
|
||||
|
||||
readmeExist := base.IsMarkdownFile(repoFile.Name) || base.IsReadmeFile(repoFile.Name)
|
||||
ctx.Data["ReadmeExist"] = readmeExist
|
||||
|
Reference in New Issue
Block a user