diff options
Diffstat (limited to 'templates/repo/migrate/migrate.tmpl')
-rw-r--r-- | templates/repo/migrate/migrate.tmpl | 32 |
1 files changed, 32 insertions, 0 deletions
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" .}} +<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate"> + <div class="ui middle very relaxed page grid"> + <div class="column"> + {{template "repo/migrate/helper" .}} + <div class="ui cards migrate-entries"> + {{range .Services}} + <a class="ui card migrate-entry tw-flex tw-items-center" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}"> + {{if eq .Name "github"}} + {{svg "octicon-mark-github" 184 "tw-p-4"}} + {{else if eq .Name "gitlab"}} + {{svg "gitea-gitlab" 184 "tw-p-4"}} + {{else if eq .Name "gitbucket"}} + {{svg "gitea-gitbucket" 184 "tw-p-4"}} + {{else}} + {{svg (printf "gitea-%s" .Name) 184}} + {{end}} + <div class="content"> + <div class="header tw-text-center"> + {{.Title}} + </div> + <div class="description tw-text-center"> + {{ctx.Locale.Tr (printf "repo.migrate.%s.description" .Name)}} + </div> + </div> + </a> + {{end}} + </div> + </div> + </div> +</div> +{{template "base/footer" .}} |