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.
gitea/templates
silverwind 56b99551ae
Clean up and fix clone button script (#20415 & #20600) (#20599)
* Clean up and fix clone button script (#20415)

The button 'primary' class needs to be set in a synchronous script to prevent flicker of the button which was regressed recently, fixed that.

Additionally, reduced the two script tags to just one, the previous scripts were actually initializing the buttons thrice on the empty repo page, now it only initializes once. Finally, removed duplicate code and re-used the inline function in the update code as well.

I had to split out the script into a separate template as on the empty repo page, the script needs access to the clone URL span in the example text, which is rendered below the clone buttons, so buttons and script could not be combined.

* Add default value for clone URLs

Default clone URLs to HTTP(S) in DOM rendering. JS will immediately
replace this if the user preference is SSH.

Fixes: https://github.com/go-gitea/gitea/issues/20558
3 years ago
..
admin Remove tab/TabName usage where it's not needed (#19973) 3 years ago
api/packages/pypi Add Package Registry (#16510) 3 years ago
base Add labels to two buttons that were missing them (#20419) (#20524) 3 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Remove tab/TabName usage where it's not needed (#19973) 3 years ago
mail Try to prevent autolinking of displaynames by email readers (#19169) 3 years ago
org Replace blue button and label classes with primary (#19763) 3 years ago
package Show hint to link package to repo when viewing empty repo package list (#20504) (#20507) 3 years ago
repo Clean up and fix clone button script (#20415 & #20600) (#20599) 3 years ago
shared Show source/target branches on PR's list (#19747) 3 years ago
status Refactor HTTP request context (#17979) 3 years ago
swagger Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407) 3 years ago
user Add missing Tabs on organisation/package view (#20539) 3 years ago
home.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 4 years ago
install.tmpl Refactor install page (db type) (#17919) 3 years ago
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 4 years ago