mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-30 22:08:30 +00:00
Preview for listing comments
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
@@ -471,6 +471,13 @@ func ViewPullFiles(ctx *context.Context) {
|
||||
ctx.Data["RawPath"] = setting.AppSubURL + "/" + path.Join(headTarget, "raw", "commit", endCommitID)
|
||||
ctx.Data["RequireHighlightJS"] = true
|
||||
|
||||
pathToLineToComment, err := models.FetchCodeComments(issue, ctx.User)
|
||||
if err != nil {
|
||||
ctx.ServerError("FetchCodeComments", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["CodeComments"] = pathToLineToComment
|
||||
|
||||
ctx.HTML(200, tplPullFiles)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user