summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorn <67550725+n194@users.noreply.github.com>2021-12-03 16:28:54 +0900
committerGitHub <noreply@github.com>2021-12-03 15:28:54 +0800
commit6791aae8de53972e0eeb83dc22ce2020531a81c5 (patch)
treedcb5e158ccd6421bd84afd373b683adbe466e3ec /routers
parent6ceef876719c618e3f935337a70019040701076a (diff)
downloadgitea-6791aae8de53972e0eeb83dc22ce2020531a81c5.tar.gz
gitea-6791aae8de53972e0eeb83dc22ce2020531a81c5.zip
Add hints for special Wiki pages (#17283)
* Add UI hints to create a Wiki sidebar and footer
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/wiki.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go
index 82f56a8c4a..44914a3e3d 100644
--- a/routers/web/repo/wiki.go
+++ b/routers/web/repo/wiki.go
@@ -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)
}