mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Use struct for UI settings
This commit is contained in:
@@ -105,7 +105,7 @@ func Home(ctx *context.Context) {
|
||||
case isImageFile:
|
||||
ctx.Data["IsImageFile"] = true
|
||||
case isTextFile:
|
||||
if blob.Size() >= setting.MaxDisplayFileSize {
|
||||
if blob.Size() >= setting.UI.MaxDisplayFileSize {
|
||||
ctx.Data["IsFileTooLarge"] = true
|
||||
} else {
|
||||
ctx.Data["IsFileTooLarge"] = false
|
||||
|
Reference in New Issue
Block a user