Add hints for special Wiki pages (#17283)

* Add UI hints to create a Wiki sidebar and footer
This commit is contained in:
n 2021-12-03 16:28:54 +09:00 committed by GitHub
parent 6ceef87671
commit 6791aae8de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -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)
}