mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Backport #23749 Fix https://github.com/go-gitea/gitea/issues/23715 Backported manually and tested manually.
This commit is contained in:
parent
5482602ba8
commit
d562b419b6
11 changed files with 135 additions and 89 deletions
|
@ -132,7 +132,7 @@ func Create(ctx *context.Context) {
|
|||
|
||||
// Give default value for template to render.
|
||||
ctx.Data["Gitignores"] = repo_module.Gitignores
|
||||
ctx.Data["LabelTemplates"] = repo_module.LabelTemplates
|
||||
ctx.Data["LabelTemplateFiles"] = repo_module.LabelTemplateFiles
|
||||
ctx.Data["Licenses"] = repo_module.Licenses
|
||||
ctx.Data["Readmes"] = repo_module.Readmes
|
||||
ctx.Data["readme"] = "Default"
|
||||
|
@ -200,7 +200,7 @@ func CreatePost(ctx *context.Context) {
|
|||
ctx.Data["Title"] = ctx.Tr("new_repo")
|
||||
|
||||
ctx.Data["Gitignores"] = repo_module.Gitignores
|
||||
ctx.Data["LabelTemplates"] = repo_module.LabelTemplates
|
||||
ctx.Data["LabelTemplateFiles"] = repo_module.LabelTemplateFiles
|
||||
ctx.Data["Licenses"] = repo_module.Licenses
|
||||
ctx.Data["Readmes"] = repo_module.Readmes
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue