diff --git a/route_handlers.go b/route_handlers.go index 96caea2..72b7c3c 100644 --- a/route_handlers.go +++ b/route_handlers.go @@ -243,7 +243,6 @@ func addedHandler(w http.ResponseWriter, r *http.Request, user *user.User) { ShowTemplate("added", w, map[string]interface{}{"user": user, "flashes": flashes}) } - func ServeFileHandler(res http.ResponseWriter, req *http.Request) { fname := path.Base(req.URL.Path) http.ServeFile(res, req, "./"+fname) diff --git a/templates/pages/categories.html b/templates/pages/categories.html index 07dee3e..7c2a1f1 100644 --- a/templates/pages/categories.html +++ b/templates/pages/categories.html @@ -19,6 +19,7 @@ {{else}}
{{end}} + {{.Name}} delete
+ {{range $child := .Children}} {{template "row-category" $child}} {{end}} + {{end}} {{define "option-category"}} @@ -40,4 +43,6 @@ {{range $child := .Children}} {{template "option-category" $child}} {{end}} +======= +>>>>>>> fea21c9d10d89f90b71988dcb41722527b947f60 {{end}} \ No newline at end of file