diff --git a/routers/repo/commit.go b/routers/repo/commit.go index cb9727fcc..2e6cd76bb 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -206,6 +206,8 @@ func FileHistory(ctx *context.Context) { func Diff(ctx *context.Context) { ctx.Data["PageIsDiff"] = true ctx.Data["RequireHighlightJS"] = true + ctx.Data["RequireSimpleMDE"] = true + ctx.Data["RequireTribute"] = true userName := ctx.Repo.Owner.Name repoName := ctx.Repo.Repository.Name diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 9b0738b1b..15ba387dc 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -80,7 +80,7 @@ {{else}}