mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 00:26:14 +02:00
linenums
This commit is contained in:
1 parent
c6bd723ce1
commit
de956c4776
6 files changed
+82
-13
No files matched your search
@@ -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