/* 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_forum_handle = template_forum //o_template_forum_handle = template_forum ctemplates = append(ctemplates,"forum") tmpl_ptr_map["forum"] = &template_forum_handle tmpl_ptr_map["o_forum"] = template_forum } func template_forum(tmpl_forum_vars ForumPage, w io.Writer) { w.Write([]byte(` ` + tmpl_forum_vars.Title + `
`)) if len(tmpl_forum_vars.NoticeList) != 0 { for _, item := range tmpl_forum_vars.NoticeList { w.Write([]byte(`
` + item + `
`)) } } w.Write([]byte(`
`)) if len(tmpl_forum_vars.ItemList) != 0 { for _, item := range tmpl_forum_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 in this forum yet.
`)) } w.Write([]byte(`
`)) }