From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/repo/migrate/codebase.tmpl | 126 ++++++++++++++++++++++++++++++ templates/repo/migrate/forgejo.tmpl | 1 + templates/repo/migrate/git.tmpl | 94 ++++++++++++++++++++++ templates/repo/migrate/gitbucket.tmpl | 142 ++++++++++++++++++++++++++++++++++ templates/repo/migrate/gitea.tmpl | 138 +++++++++++++++++++++++++++++++++ templates/repo/migrate/github.tmpl | 140 +++++++++++++++++++++++++++++++++ templates/repo/migrate/gitlab.tmpl | 137 ++++++++++++++++++++++++++++++++ templates/repo/migrate/gogs.tmpl | 137 ++++++++++++++++++++++++++++++++ templates/repo/migrate/helper.tmpl | 0 templates/repo/migrate/migrate.tmpl | 32 ++++++++ templates/repo/migrate/migrating.tmpl | 101 ++++++++++++++++++++++++ templates/repo/migrate/onedev.tmpl | 126 ++++++++++++++++++++++++++++++ templates/repo/migrate/options.tmpl | 26 +++++++ 13 files changed, 1200 insertions(+) create mode 100644 templates/repo/migrate/codebase.tmpl create mode 100644 templates/repo/migrate/forgejo.tmpl create mode 100644 templates/repo/migrate/git.tmpl create mode 100644 templates/repo/migrate/gitbucket.tmpl create mode 100644 templates/repo/migrate/gitea.tmpl create mode 100644 templates/repo/migrate/github.tmpl create mode 100644 templates/repo/migrate/gitlab.tmpl create mode 100644 templates/repo/migrate/gogs.tmpl create mode 100644 templates/repo/migrate/helper.tmpl create mode 100644 templates/repo/migrate/migrate.tmpl create mode 100644 templates/repo/migrate/migrating.tmpl create mode 100644 templates/repo/migrate/onedev.tmpl create mode 100644 templates/repo/migrate/options.tmpl (limited to 'templates/repo/migrate') diff --git a/templates/repo/migrate/codebase.tmpl b/templates/repo/migrate/codebase.tmpl new file mode 100644 index 0000000..cf46c8d --- /dev/null +++ b/templates/repo/migrate/codebase.tmpl @@ -0,0 +1,126 @@ +{{template "base/head" .}} +
+
+
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+ +
+ + +
+
+ + +
+ + {{template "repo/migrate/options" .}} + +
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/forgejo.tmpl b/templates/repo/migrate/forgejo.tmpl new file mode 100644 index 0000000..3caadbe --- /dev/null +++ b/templates/repo/migrate/forgejo.tmpl @@ -0,0 +1 @@ +{{template "repo/migrate/gitea" .}} diff --git a/templates/repo/migrate/git.tmpl b/templates/repo/migrate/git.tmpl new file mode 100644 index 0000000..5ebf4cf --- /dev/null +++ b/templates/repo/migrate/git.tmpl @@ -0,0 +1,94 @@ +{{template "base/head" .}} +
+
+
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+
+ + +
+
+ + +
+ + {{template "repo/migrate/options" .}} + +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/gitbucket.tmpl b/templates/repo/migrate/gitbucket.tmpl new file mode 100644 index 0000000..e8d6b60 --- /dev/null +++ b/templates/repo/migrate/gitbucket.tmpl @@ -0,0 +1,142 @@ +{{template "base/head" .}} +
+
+
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+ +
+ + +
+
+ + +
+ + {{template "repo/migrate/options" .}} + +
+ +
+ + +
+
+ +
+ {{ctx.Locale.Tr "repo.migrate.migrate_items_options"}} +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/gitea.tmpl b/templates/repo/migrate/gitea.tmpl new file mode 100644 index 0000000..2f40d58 --- /dev/null +++ b/templates/repo/migrate/gitea.tmpl @@ -0,0 +1,138 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+ +
+ + + {{svg "octicon-question"}} +
+ + {{template "repo/migrate/options" .}} + +
+ +
+ + +
+
+ +
+ {{ctx.Locale.Tr "repo.migrate.migrate_items_options"}} +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/github.tmpl b/templates/repo/migrate/github.tmpl new file mode 100644 index 0000000..91c1a27 --- /dev/null +++ b/templates/repo/migrate/github.tmpl @@ -0,0 +1,140 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}} + +
+ +
+ + + {{svg "octicon-question"}} + + {{ctx.Locale.Tr "repo.migrate.github_token_desc"}} + +
+ + {{template "repo/migrate/options" .}} + +
+ +
+ + +
+
+
+ {{ctx.Locale.Tr "repo.migrate.migrate_items_options"}} +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/gitlab.tmpl b/templates/repo/migrate/gitlab.tmpl new file mode 100644 index 0000000..d93a001 --- /dev/null +++ b/templates/repo/migrate/gitlab.tmpl @@ -0,0 +1,137 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+ +
+ + + {{svg "octicon-question"}} +
+ + {{template "repo/migrate/options" .}} + +
+ +
+ + +
+
+
+ {{ctx.Locale.Tr "repo.migrate.migrate_items_options"}} +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/gogs.tmpl b/templates/repo/migrate/gogs.tmpl new file mode 100644 index 0000000..6c647be --- /dev/null +++ b/templates/repo/migrate/gogs.tmpl @@ -0,0 +1,137 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+ +
+ + + +
+ + {{template "repo/migrate/options" .}} + +
+ +
+ + +
+
+ +
+ {{ctx.Locale.Tr "repo.migrate.migrate_items_options"}} +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+ +
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/helper.tmpl b/templates/repo/migrate/helper.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/templates/repo/migrate/migrate.tmpl b/templates/repo/migrate/migrate.tmpl new file mode 100644 index 0000000..c5c697e --- /dev/null +++ b/templates/repo/migrate/migrate.tmpl @@ -0,0 +1,32 @@ +{{template "base/head" .}} + +{{template "base/footer" .}} diff --git a/templates/repo/migrate/migrating.tmpl b/templates/repo/migrate/migrating.tmpl new file mode 100644 index 0000000..0b53636 --- /dev/null +++ b/templates/repo/migrate/migrating.tmpl @@ -0,0 +1,101 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+
+
+ {{template "base/alert" .}} +
+
+
+
+ +
+
+
+
+ {{svg "octicon-git-pull-request-closed" 256 "ui red icon"}} +
+
+
+
+
+
+

{{ctx.Locale.Tr "repo.migrate.migrating" .CloneAddr}}

+

+
+
+ {{if .CloneAddr}} +

{{ctx.Locale.Tr "repo.migrate.migrating_failed" .CloneAddr}}

+ {{else}} +

{{ctx.Locale.Tr "repo.migrate.migrating_failed_no_addr"}}

+ {{end}} +

+
+ {{if .Permission.IsAdmin}} +
+
+ {{if .Failed}} + + {{else}} + + {{end}} + +
+ {{end}} +
+
+
+
+
+
+
+ + + + + +{{template "base/footer" .}} diff --git a/templates/repo/migrate/onedev.tmpl b/templates/repo/migrate/onedev.tmpl new file mode 100644 index 0000000..ec15555 --- /dev/null +++ b/templates/repo/migrate/onedev.tmpl @@ -0,0 +1,126 @@ +{{template "base/head" .}} +
+
+
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} +

+ {{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}} + +

+
+ {{template "base/alert" .}} +
+ + + + {{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}} + +
+ +
+ + +
+
+ + +
+ + {{template "repo/migrate/options" .}} + +
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+ {{if .IsForcedPrivate}} + {{ctx.Locale.Tr "repo.visibility_helper_forced"}} + {{end}} + {{ctx.Locale.Tr "repo.visibility_description"}} +
+
+ + +
+ +
+ + +
+
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/migrate/options.tmpl b/templates/repo/migrate/options.tmpl new file mode 100644 index 0000000..8a46e57 --- /dev/null +++ b/templates/repo/migrate/options.tmpl @@ -0,0 +1,26 @@ +{{if not .DisableNewPullMirrors}} +
+ +
+ + +
+
+{{end}} +{{if .LFSActive}} +
+ +
+ + +
+ ({{ctx.Locale.Tr "repo.settings.advanced_settings"}}) +
+
+ {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}} +
+ + +
+
+{{end}} -- cgit v1.2.3