ui: add copy path button to file view (#6079)

Port of d11f8d24b0.
Followup to 187e10d8c9.

* removed `aria-label` in the diff template
* changed `Copy to clipboard` to `Copy path`
* left `copy_generic` for now, but it's unused
* ported the addition of this button to the file view template

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6079
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
0ko 2024-12-09 19:32:16 +00:00
parent af640ac4d4
commit 4fbdd1fc8c
4 changed files with 36 additions and 1 deletions

View file

@ -107,6 +107,7 @@ copy = Copy
copy_generic = Copy to clipboard
copy_url = Copy URL
copy_hash = Copy hash
copy_path = Copy path
copy_content = Copy content
copy_branch = Copy branch name
copy_success = Copied!