forked from NYANDEV/forgejo
[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) (cherry picked from commit 5ae55325ef8213242f3a946d2347499bd5b960bd) (cherry picked from commit f0894ae00319e0dff37392af752447f849bbe783) (cherry picked from commit 18564b26f667b8837c5bf4a0165dfa75633afe5f)
This commit is contained in:
parent
9fbbe61364
commit
06c130fd1f
2 changed files with 2 additions and 0 deletions
|
@ -1896,6 +1896,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
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<button class="ui primary button">
|
||||
{{ctx.Locale.Tr "repo.wiki.save_page"}}
|
||||
</button>
|
||||
<a class="ui button red" href="{{.Link}}">{{ctx.Locale.Tr "repo.wiki.cancel"}}</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue