/* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */ package main import "io" import "strconv" func init() { template_topics_handle = template_topics //o_template_topics_handle = template_topics ctemplates = append(ctemplates,"topics") tmpl_ptr_map["topics"] = &template_topics_handle tmpl_ptr_map["o_topics"] = template_topics } func template_topics(tmpl_topics_vars TopicsPage, w io.Writer) { w.Write([]byte(` ` + tmpl_topics_vars.Title + `
`)) if len(tmpl_topics_vars.NoticeList) != 0 { for _, item := range tmpl_topics_vars.NoticeList { w.Write([]byte(`
` + item + `
`)) } } w.Write([]byte(`
`)) if len(tmpl_topics_vars.ItemList) != 0 { for _, item := range tmpl_topics_vars.ItemList { w.Write([]byte(`
` + item.Title + ` `)) if item.Is_Closed { w.Write([]byte(`shut `)) } else { w.Write([]byte(`open`)) } w.Write([]byte(` Status
`)) } } else { w.Write([]byte(`
There aren't any topics yet.
`)) } w.Write([]byte(`
`)) }