|
|
|
@ -93,7 +93,7 @@ func Create(ctx *context.Context) { |
|
|
|
|
func handleCreateError(ctx *context.Context, owner *models.User, err error, name string, tpl base.TplName, form interface{}) { |
|
|
|
|
switch { |
|
|
|
|
case models.IsErrReachLimitOfRepo(err): |
|
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", owner.RepoCreationNum()), tpl, form) |
|
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", owner.MaxCreationLimit()), tpl, form) |
|
|
|
|
case models.IsErrRepoAlreadyExist(err): |
|
|
|
|
ctx.Data["Err_RepoName"] = true |
|
|
|
|
ctx.RenderWithErr(ctx.Tr("form.repo_name_been_taken"), tpl, form) |
|
|
|
|