mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
[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 commit3284f690ea
) (cherry picked from commit9f8bf83b0e
) (cherry picked from commitbfd03a9f30
) (cherry picked from commit6b5d5e0cf7
) (cherry picked from commit3ef3ec0d82
) (cherry picked from commit5ae55325ef
) (cherry picked from commitf0894ae003
) (cherry picked from commit18564b26f6
) (cherry picked from commit06c130fd1f
)
This commit is contained in:
parent
8c00565006
commit
c7e595f903
|
@ -1901,6 +1901,7 @@ wiki.page_title = Page title
|
||||||
wiki.page_content = Page content
|
wiki.page_content = Page content
|
||||||
wiki.default_commit_message = Write a note about this page update (optional).
|
wiki.default_commit_message = Write a note about this page update (optional).
|
||||||
wiki.save_page = Save Page
|
wiki.save_page = Save Page
|
||||||
|
wiki.cancel = Cancel
|
||||||
wiki.last_commit_info = %s edited this page %s
|
wiki.last_commit_info = %s edited this page %s
|
||||||
wiki.edit_page_button = Edit
|
wiki.edit_page_button = Edit
|
||||||
wiki.new_page_button = New Page
|
wiki.new_page_button = New Page
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
<button class="ui primary button">
|
<button class="ui primary button">
|
||||||
{{ctx.Locale.Tr "repo.wiki.save_page"}}
|
{{ctx.Locale.Tr "repo.wiki.save_page"}}
|
||||||
</button>
|
</button>
|
||||||
|
<a class="ui button red" href="{{.Link}}">{{ctx.Locale.Tr "repo.wiki.cancel"}}</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue