Fix unresolved conflicts in gitignore, readme and en-version of the book

This commit is contained in:
Denis Koltsov
2016-11-19 14:01:11 +01:00
parent ce406eda04
commit dab03f4a84
4 changed files with 0 additions and 68 deletions

View File

@@ -127,11 +127,7 @@ func (this *EditController) Get() {
id, _ := strconv.Atoi(this.Ctx.Params[":id"])
this.Data["Post"] = models.GetBlog(id)
this.Layout = "layout.tpl"
<<<<<<< HEAD
this.TplNames = "new.tpl"
=======
this.TplNames = "edit.tpl"
>>>>>>> eead24cf064976b648de5826eab51880c803b0fa
}
func (this *EditController) Post() {
@@ -154,17 +150,11 @@ type DeleteController struct {
}
func (this *DeleteController) Get() {
<<<<<<< HEAD
id, _ := strconv.Atoi(this.Ctx.Params[":id"])
this.Data["Post"] = models.DelBlog(id)
this.Ctx.Redirect(302, "/")
=======
id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"])
blog := models.GetBlog(id)
this.Data["Post"] = blog
models.DelBlog(blog)
this.Ctx.Redirect(302, "/")
>>>>>>> eead24cf064976b648de5826eab51880c803b0fa
}
```