diff --git a/routers/web/web.go b/routers/web/web.go index a6ccb7a792..c34fd3f4f2 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -1510,6 +1510,9 @@ func registerRoutes(m *web.Router) { m.Get("/{sha}", repo.SetEditorconfigIfExists, repo.SetDiffViewStyle, repo.ExcerptBlob) }, func(ctx *context.Context) gocontext.CancelFunc { // FIXME: refactor this function, use separate routes for wiki/code + if ctx.FormBool("pull") { + ctx.Data["PageIsPullFiles"] = true + } if ctx.FormBool("wiki") { ctx.Data["PageIsWiki"] = true repo.MustEnableWiki(ctx) diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl index 1aef115d3d..cbc0bcbd75 100644 --- a/templates/repo/diff/blob_excerpt.tmpl +++ b/templates/repo/diff/blob_excerpt.tmpl @@ -23,9 +23,11 @@
{{/*
*/}}{{end}}{{/*
@@ -44,9 +48,11 @@
{{/*
*/}}{{end}}{{/*
@@ -92,7 +98,7 @@
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line ctx.Locale}}
{{$inlineDiff.Content}}
{{$inlineDiff.Content}}