Add basic render of public act

This commit is contained in:
Unknown 2014-03-15 00:50:51 -04:00
parent 2289ff20bf
commit adb17791bd
10 changed files with 472 additions and 26 deletions

View file

@ -49,8 +49,7 @@ func Create(form auth.CreateRepoForm, req *http.Request, r render.Render, data b
form.RepoName, form.Description, form.Language, form.License,
form.Visibility == "private", form.InitReadme == "on"); err == nil {
if err == nil {
data["RepoName"] = user.Name + "/" + form.RepoName
r.HTML(200, "repo/created", data)
r.Redirect("/"+user.Name+"/"+form.RepoName, 200)
return
}
}