mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-19 19:18:43 +02:00
Add missing changes
This commit is contained in:
parent
cd3a9afe8f
commit
cdf05fb726
@ -46,9 +46,17 @@ func RefBlame(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// ctx.Data["RepoPreferences"] = ctx.Session.Get("repoPreferences")
|
||||
showFileViewTreeSidebar := true
|
||||
if ctx.Doer != nil {
|
||||
v, err := user_model.GetUserSetting(ctx, ctx.Doer.ID, user_model.SettingsKeyShowFileViewTreeSidebar, "true")
|
||||
if err != nil {
|
||||
log.Error("GetUserSetting: %v", err)
|
||||
} else {
|
||||
showFileViewTreeSidebar, _ = strconv.ParseBool(v)
|
||||
}
|
||||
}
|
||||
ctx.Data["RepoPreferences"] = &preferencesForm{
|
||||
ShowFileViewTreeSidebar: true,
|
||||
ShowFileViewTreeSidebar: showFileViewTreeSidebar,
|
||||
}
|
||||
|
||||
branchLink := ctx.Repo.RepoLink + "/src/" + ctx.Repo.BranchNameSubURL()
|
||||
|
@ -1,5 +1,4 @@
|
||||
// Copyright 2014 The Gogs Authors. All rights reserved.
|
||||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// Copyright 2024 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package repo
|
||||
|
Loading…
x
Reference in New Issue
Block a user