// Serves the problems list page func (this *ProblemController) List() { problem := models.Problem{} problems, _ := problem.GetRecent() this.Data["problems"] = problems this.Data["title"] = "Home | List " this.Data["types"], _ = problem.GetTypes() this.Layout = "layout.tpl" this.TplNames = "problem/list.tpl" this.LayoutSections = make(map[string]string) this.LayoutSections["HtmlHead"] = "" this.LayoutSections["Sidebar"] = "sidebar/showcategories.tpl" }