summaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-09 02:18:25 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-09 02:18:25 -0500
commit9a1fe801e526ae1bc0a211d8a218aabcf985376d (patch)
treee40f92f1b34f81c60ffef084761b7d6cd4336aa2 /routers/repo/view.go
parent6f71632e3ef6c0c818b3224e501fa66583108806 (diff)
downloadgitea-9a1fe801e526ae1bc0a211d8a218aabcf985376d.tar.gz
gitea-9a1fe801e526ae1bc0a211d8a218aabcf985376d.zip
fix #711
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r--routers/repo/view.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 073eb5d74e..2fb411589a 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -152,6 +152,11 @@ func Home(ctx *middleware.Context) {
}
}
+ // Render issue index links.
+ for _, f := range files {
+ c := f[1].(*git.Commit)
+ c.CommitMessage = string(base.RenderIssueIndexPattern([]byte(c.CommitMessage), ctx.Repo.RepoLink))
+ }
ctx.Data["Files"] = files
var readmeFile *git.Blob
@@ -199,7 +204,7 @@ func Home(ctx *middleware.Context) {
}
lastCommit := ctx.Repo.Commit
- lastCommit.CommitMessage = string(base.RenderissueIndexPattern([]byte(lastCommit.CommitMessage), ctx.Repo.RepoLink))
+ lastCommit.CommitMessage = string(base.RenderIssueIndexPattern([]byte(lastCommit.CommitMessage), ctx.Repo.RepoLink))
if len(treePath) > 0 {
c, err := ctx.Repo.Commit.GetCommitOfRelPath(treePath)
if err != nil {