mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
#3464 reproduce diff signs
This commit is contained in:
parent
2625193a48
commit
6cda35a75f
1 changed files with 1 additions and 1 deletions
|
@ -145,6 +145,7 @@ func FileHistory(ctx *context.Context) {
|
|||
|
||||
func Diff(ctx *context.Context) {
|
||||
ctx.Data["PageIsDiff"] = true
|
||||
ctx.Data["RequireHighlightJS"] = true
|
||||
|
||||
userName := ctx.Repo.Owner.Name
|
||||
repoName := ctx.Repo.Repository.Name
|
||||
|
@ -201,7 +202,6 @@ func Diff(ctx *context.Context) {
|
|||
ctx.Data["BeforeSourcePath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "src", parents[0])
|
||||
}
|
||||
ctx.Data["RawPath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "raw", commitID)
|
||||
ctx.Data["RequireHighlightJS"] = true
|
||||
ctx.HTML(200, DIFF)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue