forgejo-federation/templates/repo
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
..
branch Add disable download source configuration (#20548) 2022-07-31 18:57:02 +02:00
diff Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
editor Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
find Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
graph Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
issue Fix default merge style (#20564) 2022-07-31 17:13:31 +02:00
migrate Remove blue text on migrate page (#20273) 2022-07-12 17:04:15 +08:00
projects Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
pulls Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
release Add disable download source configuration (#20548) 2022-07-31 18:57:02 +02:00
settings Implement sync push mirror on commit (#19411) 2022-07-08 20:45:12 +01:00
wiki Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
activity.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
blame.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
branch_dropdown.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
clone_buttons.tmpl Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
clone_script.tmpl Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
commit_page.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
commit_status.tmpl Show dropdown with all statuses for commit (#13977) 2020-12-20 11:13:12 +08:00
commit_statuses.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
commits.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
commits_list.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
commits_list_small.tmpl Fix a broken link in commits_list_small.tmpl (#18763) 2022-02-14 19:19:07 +08:00
commits_table.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
create.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
empty.tmpl Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
forks.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
graph.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
header.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
home.tmpl Clean up and fix clone button script (#20415) 2022-07-31 20:29:55 +02:00
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 2020-12-13 16:51:15 -05:00
packages.tmpl Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
search.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
shabox_badge.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
sub_menu.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
unicode_escape_prompt.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
upload.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
user_cards.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
view_file.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
view_list.tmpl Use body text color in repository files table links (#20386) 2022-07-22 18:49:24 +08:00
watchers.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00