aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/view.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-05-17 18:50:14 -0400
committerUnknwon <u@gogs.io>2017-05-17 18:50:14 -0400
commitd71a8fece853911fb4702e43447da6fffd52941b (patch)
treecdedf76bc62f9e0c4cbd7d17027cc240d1800901 /routers/repo/view.go
parent5202b7da48da74933ec48d842814148ba219d7fc (diff)
feature/org-mode: fix compile error
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r--routers/repo/view.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 024268ba..b4b4e386 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())