diff options
author | Unknwon <u@gogs.io> | 2015-12-09 11:24:56 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-09 11:24:56 -0500 |
commit | b8d48bdb62a95da2752cddf325abcd9cf1f9909d (patch) | |
tree | c182a080ee72507c8fcb4f274641b37799fc4fdf /routers/repo/repo.go | |
parent | 15d62bba82b97a626ac2d6c55cc16537b47a9321 (diff) | |
download | gitea-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.go | 1 |
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() { |