You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yarden Shoham e3a7f15791
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>
2 years ago
..
branch Fix UI column width, button overflow Fomantic's grid (#21559) 2 years ago
diff Improve code comment review on mobile (#21461) 2 years ago
editor Make sure fmt catches all templates (#20979) 2 years ago
find Refactor `i18n` to `locale` (#20153) 2 years ago
graph Make sure fmt catches all templates (#20979) 2 years ago
issue Localize all timestamps (#21440) 2 years ago
migrate Make sure fmt catches all templates (#20979) 2 years ago
projects Make sure fmt catches all templates (#20979) 2 years ago
pulls fix: PR status layout on mobile (#21547) 2 years ago
release Tag list should include draft releases with existing tags (#21263) 2 years ago
settings Add Webhook authorization header (#20926) 2 years ago
wiki Webhook for Wiki changes (#20219) 2 years ago
activity.tmpl Respect user's locale when rendering the date range in the repo activity page (#21410) 2 years ago
blame.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 2 years ago
branch_dropdown.tmpl Fix branch dropdown shifting on page load (#21428) 2 years ago
clone_buttons.tmpl Rework repo buttons (#20602) 2 years ago
clone_script.tmpl Make the vscode clone link respect transport protocol (#20557) 2 years ago
commit_page.tmpl Revert increased width on pull pages (#21470) 2 years ago
commit_status.tmpl Change commit status icons to SVG (#20736) 2 years ago
commit_statuses.tmpl Improve commit status icons (#21124) 2 years ago
commits.tmpl Rework repo buttons (#20602) 2 years ago
commits_list.tmpl Change `commits-table` column width (#21564) 2 years ago
commits_list_small.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
commits_table.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
create.tmpl Remove cancel button in repo creation page (#21381) 2 years ago
empty.tmpl Add default value for clone URLs (#20600) 2 years ago
forks.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
graph.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
header.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
home.tmpl Expand "Go to File" button again, fix 'Add File' margin (#21543) 2 years ago
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 4 years ago
packages.tmpl Add Package Registry (#16510) 2 years ago
search.tmpl Add user/organization code search (#19977) 2 years ago
shabox_badge.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
sub_menu.tmpl Fix #21406: Hide repo information from file view/blame mode (#21420) 2 years ago
unicode_escape_prompt.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 2 years ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
user_cards.tmpl Localize all timestamps (#21440) 2 years ago
view_file.tmpl Add "Copy" button to file view of raw text (#21629) 2 years ago
view_list.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
watchers.tmpl Add class to page content to unify top margin (#13766) 4 years ago