summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-09 11:24:56 -0500
committerUnknwon <u@gogs.io>2015-12-09 11:24:56 -0500
commitb8d48bdb62a95da2752cddf325abcd9cf1f9909d (patch)
treec182a080ee72507c8fcb4f274641b37799fc4fdf /routers/repo/repo.go
parent15d62bba82b97a626ac2d6c55cc16537b47a9321 (diff)
downloadgitea-b8d48bdb62a95da2752cddf325abcd9cf1f9909d.tar.gz
gitea-b8d48bdb62a95da2752cddf325abcd9cf1f9909d.zip
#2037 Add "New Mirror" button on Dashboard
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 7cc7df35a2..e134fd29e6 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -139,6 +139,7 @@ func Migrate(ctx *middleware.Context) {
ctx.Data["Title"] = ctx.Tr("new_migrate")
ctx.Data["private"] = ctx.User.LastRepoVisibility
ctx.Data["IsForcedPrivate"] = setting.Repository.ForcePrivate
+ ctx.Data["mirror"] = ctx.Query("mirror") == "1"
ctxUser := checkContextUser(ctx, ctx.QueryInt64("org"))
if ctx.Written() {