From 9b11c3e32037a77e53551127d26dbf54139aa2fc Mon Sep 17 00:00:00 2001 From: Divyam Bhasin Date: Fri, 23 Oct 2020 19:01:58 -0400 Subject: #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 Co-authored-by: techknowlogick Co-authored-by: zeripath Co-authored-by: silverwind --- routers/org/home.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/org') diff --git a/routers/org/home.go b/routers/org/home.go index 0a9f176bdc..9ca0258784 100644 --- a/routers/org/home.go +++ b/routers/org/home.go @@ -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 -- cgit v1.2.3