From bfd03a9f309fbb9413601daa304cea8f16b627ad 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) --- 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 10a8783d19..06fe0bce17 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1891,6 +1891,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"}}