summaryrefslogtreecommitdiffstats
path: root/templates/repo/migrate
diff options
context:
space:
mode:
authorDivyam Bhasin <divbest99@gmail.com>2020-10-23 19:01:58 -0400
committerGitHub <noreply@github.com>2020-10-23 19:01:58 -0400
commit9b11c3e32037a77e53551127d26dbf54139aa2fc (patch)
tree57d4bf12dc8eacaa367b9e32b3d35589ccb20fd5 /templates/repo/migrate
parentd2ad4dec63cb3ee94b5ba997aa2e2514abc53096 (diff)
downloadgitea-9b11c3e32037a77e53551127d26dbf54139aa2fc.tar.gz
gitea-9b11c3e32037a77e53551127d26dbf54139aa2fc.zip
#13091 - add new mirror button (#13105)
* added button * got URL params to carry through to service specific migrate pages * do not display add mirror button if mirroring turned off * added corrections by reviewers * Add silverwind's suggestion Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/repo/migrate')
-rw-r--r--templates/repo/migrate/migrate.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/migrate/migrate.tmpl b/templates/repo/migrate/migrate.tmpl
index 1521620b0e..a8b1244523 100644
--- a/templates/repo/migrate/migrate.tmpl
+++ b/templates/repo/migrate/migrate.tmpl
@@ -5,11 +5,11 @@
<div class="ui three stackable cards">
{{range .Services}}
<div class="ui card">
- <a class="image" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}">
+ <a class="image" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
{{svg (Printf "gitea-%s" .Name) 184}}
</a>
<div class="content">
- <a class="header" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}">{{.Title}}</a>
+ <a class="header" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">{{.Title}}</a>
<div class="description">
{{(Printf "repo.migrate.%s.description" .Name) | $.i18n.Tr }}
</div>