0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 22:34:35 +01:00
This commit is contained in:
Unknwon 2014-11-11 16:56:57 -05:00
parent 4f360d8f08
commit 21b9d5fa1f

View file

@ -300,7 +300,7 @@ func CompareDiff(ctx *middleware.Context) {
ctx.Data["Commit"] = commit
ctx.Data["Diff"] = diff
ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
ctx.Data["SourcePath"] = "/" + path.Join(userName, repoName, "src", afterCommitId)
ctx.Data["RawPath"] = "/" + path.Join(userName, repoName, "raw", afterCommitId)
ctx.Data["SourcePath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "src", afterCommitId)
ctx.Data["RawPath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "raw", afterCommitId)
ctx.HTML(200, DIFF)
}