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.
The last PR about clone buttons introduced an JS error when visiting an empty repo page: * https://github.com/go-gitea/gitea/pull/19028 * `Uncaught ReferenceError: isSSH is not defined`, because the variables are scoped and doesn't share between sub templates. This: 1. Simplify `templates/repo/clone_buttons.tmpl` and make code clear 2. Move most JS code into `initRepoCloneLink` 3. Remove unused `CloneLink.Git` 4. Remove `ctx.Data["DisableSSH"] / ctx.Data["ExposeAnonSSH"] / ctx.Data["DisableHTTP"]`, and only set them when is is needed (eg: deploy keys / ssh keys) 5. Introduce `Data["CloneButton*"]` to provide data for clone buttons and links 6. Introduce `Data["RepoCloneLink"]` for the repo clone link (not the wiki) 7. Remove most `ctx.Data["PageIsWiki"]` because it has been set in the `/wiki` middleware 8. Remove incorrect `quickstart` class in `migrating.tmpl` |
2 years ago | |
---|---|---|
.. | ||
comp | 2 years ago | |
admin-common.js | 2 years ago | |
admin-emails.js | 3 years ago | |
admin-users.js | 3 years ago | |
clipboard.js | 3 years ago | |
codeeditor.js | 3 years ago | |
colorpicker.js | 4 years ago | |
common-global.js | 2 years ago | |
common-issue.js | 2 years ago | |
common-organization.js | 3 years ago | |
contextpopup.js | 3 years ago | |
dropzone.js | 3 years ago | |
emoji.js | 3 years ago | |
eventsource.sharedworker.js | 3 years ago | |
heatmap.js | 3 years ago | |
imagediff.js | 3 years ago | |
install.js | 3 years ago | |
notification.js | 3 years ago | |
org-team.js | 3 years ago | |
repo-branch.js | 3 years ago | |
repo-code.js | 2 years ago | |
repo-commit.js | 3 years ago | |
repo-common.js | 2 years ago | |
repo-diff.js | 3 years ago | |
repo-editor.js | 3 years ago | |
repo-graph.js | 3 years ago | |
repo-home.js | 3 years ago | |
repo-issue-content.js | 3 years ago | |
repo-issue.js | 2 years ago | |
repo-legacy.js | 2 years ago | |
repo-migrate.js | 3 years ago | |
repo-migration.js | 3 years ago | |
repo-projects.js | 2 years ago | |
repo-release.js | 3 years ago | |
repo-settings.js | 3 years ago | |
repo-template.js | 3 years ago | |
repo-unicode-escape.js | 3 years ago | |
repo-wiki.js | 3 years ago | |
serviceworker.js | 3 years ago | |
sshkey-helper.js | 3 years ago | |
stopwatch.js | 3 years ago | |
tablesort.js | 3 years ago | |
tribute.js | 3 years ago | |
user-auth-webauthn.js | 3 years ago | |
user-auth.js | 3 years ago | |
user-settings.js | 3 years ago |