forgejo-federation/templates
silverwind 7d1aed83f4
Disable the 'Add File' button when not able to edit repo (#21503)
Previously, the button would render a dropdown with zero items when
`.CanEnableEditor` was false (for example on a mirror repo). Now it
disables the button instead which is better UX.

<img width="310" alt="image"
src="https://user-images.githubusercontent.com/115237/196546655-7262070d-dd8f-4fbe-ad5c-ecb443a9caef.png">
<img width="292" alt="image"
src="https://user-images.githubusercontent.com/115237/196546694-51ef5792-16d4-463d-aae8-7ef22dba6bb4.png">

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-10-19 16:08:33 +08:00
..
admin Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Remove useless appVer from JS window.config (#21445) 2022-10-14 01:16:27 +08:00
code Run make fmt (#21437) 2022-10-13 21:33:54 -04:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
mail Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
org Add user/organization code search (#19977) 2022-10-11 00:12:03 +01:00
package Fix empty container layer history and UI (#21251) 2022-09-27 15:03:24 +02:00
repo Disable the 'Add File' button when not able to edit repo (#21503) 2022-10-19 16:08:33 +08:00
shared Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
status Remove fomantic image module (#21145) 2022-09-12 17:08:46 +08:00
swagger Make external issue tracker regexp configurable via API (#21338) 2022-10-07 20:49:30 +08:00
user Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
home.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
install.tmpl Rework mailer settings (#18982) 2022-08-02 13:24:18 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00