gitea/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
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
commit_statuses.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
commits_list_small.tmpl
commits_list.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
commits_table.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
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
packages.tmpl
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