mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add hints for special Wiki pages (#17283)
* Add UI hints to create a Wiki sidebar and footer
This commit is contained in:
@@ -627,6 +627,9 @@ func NewWiki(ctx *context.Context) {
|
||||
if !ctx.Repo.Repository.HasWiki() {
|
||||
ctx.Data["title"] = "Home"
|
||||
}
|
||||
if ctx.FormString("title") != "" {
|
||||
ctx.Data["title"] = ctx.FormString("title")
|
||||
}
|
||||
|
||||
ctx.HTML(http.StatusOK, tplWikiNew)
|
||||
}
|
||||
|
Reference in New Issue
Block a user