forked from kevadesu/forgejo
linenums
This commit is contained in:
parent
c6bd723ce1
commit
de956c4776
6 changed files with 82 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue