diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/home.tmpl | 3 | ||||
-rw-r--r-- | templates/repo/migrate/migrate.tmpl | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 024be119bd..fba7de3f1f 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -28,6 +28,9 @@ <div class="ui eleven wide column"> {{if .CanCreateOrgRepo}} <div class="text right"> + {{if not .DisabledMirrors}} + <a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a> + {{end}} <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{.i18n.Tr "new_repo"}}</a> </div> <div class="ui divider"></div> 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> |