summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2022-11-04 21:33:50 +0200
committerGitHub <noreply@github.com>2022-11-04 15:33:50 -0400
commite3a7f15791db3c98bb80136a133748223fc26e05 (patch)
treeca93fa7a338d86cd332cfbe2d2951faea53f3b52 /options
parent2900dc90a792204a02f4a249399f221d3f9b9c52 (diff)
downloadgitea-e3a7f15791db3c98bb80136a133748223fc26e05.tar.gz
gitea-e3a7f15791db3c98bb80136a133748223fc26e05.zip
Add "Copy" button to file view of raw text (#21629)
If a raw text file is displayed, a copy button of the text is enabled. * Closes #12866 ### Before ![image](https://user-images.githubusercontent.com/20454870/198898628-df1bcb0c-79d7-4ffb-95e4-441d77430827.png) ### After ![image](https://user-images.githubusercontent.com/20454870/199988152-ea1099ad-29e1-4765-a9ca-4c03c1737453.png) #### Rendered files and binaries have their button disabled ![image](https://user-images.githubusercontent.com/20454870/199988408-73de6327-5e9e-462b-b2b6-8c3f5b878386.png) ![image](https://user-images.githubusercontent.com/20454870/199988563-844f8656-f48d-4929-880e-b6558c1c054a.png) Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'options')
-rw-r--r--options/locale/locale_en-US.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 32da24b6b0..e610bc6b28 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -88,6 +88,7 @@ edit = Edit
copy = Copy
copy_url = Copy URL
+copy_content = Copy content
copy_branch = Copy branch name
copy_success = Copied!
copy_error = Copy failed
@@ -1090,6 +1091,7 @@ editor.cannot_edit_non_text_files = Binary files cannot be edited in the web int
editor.edit_this_file = Edit File
editor.this_file_locked = File is locked
editor.must_be_on_a_branch = You must be on a branch to make or propose changes to this file.
+editor.only_copy_raw = You may only copy raw text files.
editor.fork_before_edit = You must fork this repository to make or propose changes to this file.
editor.delete_this_file = Delete File
editor.must_have_write_access = You must have write access to make or propose changes to this file.