We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18dc4f1 commit f0df8e8Copy full SHA for f0df8e8
routers/repo/middlewares.go
@@ -8,6 +8,7 @@ import (
8
"code.gitea.io/gitea/modules/context"
9
)
10
11
+// SetEditorconfigIfExists set editor config as render variable
12
func SetEditorconfigIfExists(ctx *context.Context) {
13
ec, err := ctx.Repo.GetEditorconfig()
14
@@ -22,6 +23,7 @@ func SetEditorconfigIfExists(ctx *context.Context) {
22
23
ctx.Data["Editorconfig"] = ec
24
}
25
26
+// SetDiffViewStyle set diff style as render variable
27
func SetDiffViewStyle(ctx *context.Context) {
28
queryStyle := ctx.Query("style")
29
0 commit comments