mirror of
1
Fork 0

[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 3284f690ea)
(cherry picked from commit 9f8bf83b0e)
This commit is contained in:
Gusted 2023-11-20 09:43:52 +01:00 committed by Earl Warren
parent a39eac2e12
commit bfd03a9f30
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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>