Add create, list, view issue

This commit is contained in:
Unknown 2014-03-22 16:00:46 -04:00
parent b3cfd9fe0c
commit 59ffdbf6f8
11 changed files with 217 additions and 51 deletions

View file

@ -31,6 +31,11 @@ func Create(ctx *middleware.Context, form auth.CreateRepoForm) {
return
}
if ctx.HasError() {
ctx.HTML(200, "repo/create")
return
}
_, err := models.CreateRepository(ctx.User, form.RepoName, form.Description,
form.Language, form.License, form.Visibility == "private", form.InitReadme == "on")
if err == nil {