Add hints for special Wiki pages (#17283)
* Add UI hints to create a Wiki sidebar and footer
This commit is contained in:
parent
6ceef87671
commit
6791aae8de
3 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue