mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 09:32:44 +01:00
parent
cf045b029c
commit
fc3ed8a1de
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ func SetEditorconfigIfExists(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetDiffViewStyle(ctx *context.Context) {
|
func SetDiffViewStyle(ctx *context.Context) {
|
||||||
|
if !ctx.IsSigned {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
userStyle = ctx.User.DiffViewStyle
|
userStyle = ctx.User.DiffViewStyle
|
||||||
queryStyle = ctx.Query("style")
|
queryStyle = ctx.Query("style")
|
||||||
|
|
Loading…
Reference in a new issue