diff options
author | n <67550725+n194@users.noreply.github.com> | 2021-12-03 16:28:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 15:28:54 +0800 |
commit | 6791aae8de53972e0eeb83dc22ce2020531a81c5 (patch) | |
tree | dcb5e158ccd6421bd84afd373b683adbe466e3ec /routers | |
parent | 6ceef876719c618e3f935337a70019040701076a (diff) | |
download | gitea-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.go | 3 |
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) } |