From 5ae55325ef8213242f3a946d2347499bd5b960bd Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 20 Nov 2023 09:43:52 +0100 Subject: [PATCH] [GITEA] Add cancel button to wiki - Add a cancel button to the Edit and New wiki pages. - Resolves https://codeberg.org/forgejo/forgejo/issues/705 (cherry picked from commit 3284f690ea6a9a41da05f8229aadfd55e222df1c) (cherry picked from commit 9f8bf83b0e7845a44ca91bc8497356dbab059374) (cherry picked from commit bfd03a9f309fbb9413601daa304cea8f16b627ad) (cherry picked from commit 6b5d5e0cf7547acf38d28e5ec26be82e78357e49) (cherry picked from commit 3ef3ec0d8205bf168b02e8a91d20a6df685e242a) --- options/locale/locale_en-US.ini | 1 + templates/repo/wiki/new.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c160aa3d49..09ee4dfe8e 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1893,6 +1893,7 @@ wiki.page_title = Page title wiki.page_content = Page content wiki.default_commit_message = Write a note about this page update (optional). wiki.save_page = Save Page +wiki.cancel = Cancel wiki.last_commit_info = %s edited this page %s wiki.edit_page_button = Edit wiki.new_page_button = New Page diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index ff31df0c32..0d0e78c7ad 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -39,6 +39,7 @@ + {{ctx.Locale.Tr "repo.wiki.cancel"}}