0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-17 04:40:17 +01:00
forgejo/templates
Yarden Shoham e3a7f15791
Add "Copy" button to file view of raw text ()
If a raw text file is displayed, a copy button of the text is enabled.

* Closes 

### 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>
2022-11-04 15:33:50 -04:00
..
admin Allow package version sorting () 2022-10-23 09:18:15 +08:00
api/packages/pypi
base Remove useless appVer from JS window.config () 2022-10-14 01:16:27 +08:00
code
custom
explore
mail
org
package Allow package version sorting () 2022-10-23 09:18:15 +08:00
repo Add "Copy" button to file view of raw text () 2022-11-04 15:33:50 -04:00
shared Localize all timestamps () 2022-10-17 12:08:21 +08:00
status
swagger Add Webhook authorization header () 2022-11-03 20:23:20 +02:00
user Added missing headers on user packages page () 2022-10-24 20:01:05 +08:00
home.tmpl
install.tmpl Clean up formatting on install page () 2022-11-03 20:41:01 +00:00
post-install.tmpl