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.
forgejo/templates
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
..
admin Allow package version sorting (#21453) 2 years ago
api/packages/pypi Add Package Registry (#16510) 2 years ago
base Remove useless `appVer` from JS `window.config` (#21445) 2 years ago
code Run `make fmt` (#21437) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Localize all timestamps (#21440) 2 years ago
mail Add team member invite by email (#20307) 2 years ago
org Add team member invite by email (#20307) 2 years ago
package Allow package version sorting (#21453) 2 years ago
repo Add "Copy" button to file view of raw text (#21629) 2 years ago
shared Localize all timestamps (#21440) 2 years ago
status Remove fomantic image module (#21145) 2 years ago
swagger Add Webhook authorization header (#20926) 2 years ago
user Added missing headers on user packages page (#21172) 2 years ago
home.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
install.tmpl Clean up formatting on install page (#21668) 2 years ago
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 3 years ago