feature/org-mode: fix compile error

pull/4517/head
Unknwon 2017-05-17 18:50:14 -04:00
parent 5202b7da48
commit d71a8fece8
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
4 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.9.0407"
const APP_VER = "0.11.10.0517"
func init() {
setting.AppVer = APP_VER

View File

@ -88,11 +88,11 @@ func renderDirectory(c *context.Context, treeLink string) {
switch markup.Detect(readmeFile.Name()) {
case markup.MARKDOWN:
ctx.Data["IsMarkdown"] = true
buf = markup.Markdown(buf, treeLink, ctx.Repo.Repository.ComposeMetas())
c.Data["IsMarkdown"] = true
buf = markup.Markdown(buf, treeLink, c.Repo.Repository.ComposeMetas())
case markup.ORG_MODE:
ctx.Data["IsMarkdown"] = true
buf = markup.OrgMode(buf, treeLink, ctx.Repo.Repository.ComposeMetas())
c.Data["IsMarkdown"] = true
buf = markup.OrgMode(buf, treeLink, c.Repo.Repository.ComposeMetas())
case markup.IPYTHON_NOTEBOOK:
c.Data["IsIPythonNotebook"] = true
c.Data["RawFileLink"] = c.Repo.RepoLink + "/raw/" + path.Join(c.Repo.BranchName, c.Repo.TreePath, readmeFile.Name())

View File

@ -1 +1 @@
0.11.9.0407
0.11.10.0517