summaryrefslogtreecommitdiffstats
path: root/templates/repo/migrate/migrate.tmpl
blob: c5c697edffe9f54a0a79c02d96dbaa0cca323e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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" .}}