From 2f228ddf31b76bc424635f262f34e4b01226f2ef Mon Sep 17 00:00:00 2001 From: Josh Frye Date: Thu, 3 Mar 2016 17:41:01 -0500 Subject: [PATCH] Update delete wiki page route --- cmd/web.go | 2 +- templates/repo/wiki/view.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index 8b7134adb0..530bec3852 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -495,7 +495,7 @@ func runWeb(ctx *cli.Context) { Post(bindIgnErr(auth.NewWikiForm{}), repo.NewWikiPost) m.Combo("/:page/_edit").Get(repo.EditWiki). Post(bindIgnErr(auth.NewWikiForm{}), repo.EditWikiPost) - m.Post("/:page", bindIgnErr(auth.NewWikiForm{}), repo.DeleteWikiPagePost) + m.Post("/:page/delete", bindIgnErr(auth.NewWikiForm{}), repo.DeleteWikiPagePost) }, reqSignIn, reqRepoPusher) }, repo.MustEnableWiki, middleware.RepoRef()) diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 31ffd4d094..b96931fab1 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -50,7 +50,7 @@
{{.i18n.Tr "repo.wiki.edit_page_button"}} {{.i18n.Tr "repo.wiki.new_page_button"}} - {{.i18n.Tr "repo.wiki.delete_page_button"}} + {{.i18n.Tr "repo.wiki.delete_page_button"}}
{{end}}