From d71a8fece853911fb4702e43447da6fffd52941b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 17 May 2017 18:50:14 -0400 Subject: [PATCH] feature/org-mode: fix compile error --- gogs.go | 2 +- {modules => pkg}/markup/orgmode.go | 0 routers/repo/view.go | 8 ++++---- templates/.VERSION | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename {modules => pkg}/markup/orgmode.go (100%) diff --git a/gogs.go b/gogs.go index 360447400..61da64563 100644 --- a/gogs.go +++ b/gogs.go @@ -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 diff --git a/modules/markup/orgmode.go b/pkg/markup/orgmode.go similarity index 100% rename from modules/markup/orgmode.go rename to pkg/markup/orgmode.go diff --git a/routers/repo/view.go b/routers/repo/view.go index 024268bab..b4b4e386a 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -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()) diff --git a/templates/.VERSION b/templates/.VERSION index fa791cf6a..48f126211 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.9.0407 \ No newline at end of file +0.11.10.0517 \ No newline at end of file