mirror of
https://github.com/go-gitea/gitea
synced 2025-08-03 16:18:36 +00:00
* 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>
This commit is contained in:
@@ -127,6 +127,8 @@ func Home(ctx *context.Context) {
|
||||
ctx.Data["Members"] = members
|
||||
ctx.Data["Teams"] = org.Teams
|
||||
|
||||
ctx.Data["DisabledMirrors"] = setting.Repository.DisableMirrors
|
||||
|
||||
pager := context.NewPagination(int(count), setting.UI.User.RepoPagingNum, page, 5)
|
||||
pager.SetDefaultParams(ctx)
|
||||
ctx.Data["Page"] = pager
|
||||
|
@@ -28,6 +28,9 @@ func Migrate(ctx *context.Context) {
|
||||
ctx.Data["Services"] = append([]structs.GitServiceType{structs.PlainGitService}, structs.SupportedFullGitService...)
|
||||
serviceType := ctx.QueryInt("service_type")
|
||||
if serviceType == 0 {
|
||||
ctx.Data["Org"] = ctx.Query("org")
|
||||
ctx.Data["Mirror"] = ctx.Query("mirror")
|
||||
|
||||
ctx.HTML(200, tplMigrate)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user