mirror of
1
Fork 0
forgejo/templates
silverwind c61ed6fad4
Rework repo buttons (#20602, #20718) (#20719)
* Rework repo buttons (#20602)

* Rework repo buttons

- Replace "New PR" and "Go to File" button with Icon Button
- Move all "Add File" actions into a dropdown button
- Remove most custom styling of clone buttons
- Margin and wiki tweaks

Buttons are now all equal height, mobile layout wraps gracefully.

Fixes: https://github.com/go-gitea/gitea/issues/13671
Replaces: https://github.com/go-gitea/gitea/pull/20375

* Restore history button and hide add button when unable to add (#20718)

Fix two regressions from #20602:

- Restore the 'History' button that was previously unable to render
  because it's show condition was never hit
- Hide the 'Add File' button when there would be no items in the
  dropdown.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-08-20 15:49:16 +01:00
..
admin Remove tab/TabName usage where it's not needed (#19973) 2022-06-15 23:05:32 +08:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Add labels to two buttons that were missing them (#20419) (#20524) 2022-07-28 21:21:36 +01:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Remove tab/TabName usage where it's not needed (#19973) 2022-06-15 23:05:32 +08:00
mail Add disable download source configuration (#20548) (#20579) 2022-08-12 23:53:10 +08:00
org Replace blue button and label classes with primary (#19763) 2022-05-20 00:08:08 +02:00
package Use correct field name. (#20675) (#20760) 2022-08-11 10:43:18 +03:00
repo Rework repo buttons (#20602, #20718) (#20719) 2022-08-20 15:49:16 +01:00
shared Make branch icon stand out more (#20726) (#20774) 2022-08-12 15:38:17 -04:00
status Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
swagger Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407) 2022-07-19 17:46:33 +02:00
user Add missing Tabs on organisation/package view (#20539) 2022-07-29 19:14:50 +02:00
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00
install.tmpl Refactor install page (db type) (#17919) 2021-12-07 13:44:08 +08:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00