mirror of
1
Fork 0
forgejo/templates
silverwind 335e918b11
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.
2022-07-31 20:29:55 +02:00
..
admin Add option to purge users (#18064) 2022-07-14 08:22:09 +01: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) 2022-07-26 17:43:13 +02:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Add tooltip to repo icons in explore page (#20241) 2022-07-07 22:17:41 +02:00
mail Add disable download source configuration (#20548) 2022-07-31 18:57:02 +02:00
org Fix org members bug (#20489) 2022-07-26 11:13:24 -05:00
package Show hint to link package to repo when viewing empty repo package list (#20504) 2022-07-27 19:58:21 +08:00
repo Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
shared Display project in issue list (#20434) 2022-07-26 15:42:23 +02:00
status Refactor `i18n` to `locale` (#20153) 2022-06-27 15:58:46 -05:00
swagger Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
user Add missing Tabs on organisation/package view (Frontport #20539) (#20540) 2022-07-31 14:32:51 +02:00
home.tmpl Refactor `i18n` to `locale` (#20153) 2022-06-27 15:58:46 -05:00
install.tmpl Refactor `i18n` to `locale` (#20153) 2022-06-27 15:58:46 -05:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00