package main import "io" import "strconv" func init() { template_forums_handle = template_forums } func template_forums(tmpl_forums_vars Page, w io.Writer) { w.Write([]byte(` ` + tmpl_forums_vars.Title + `
`)) if len(tmpl_forums_vars.NoticeList) != 0 { for _, item := range tmpl_forums_vars.NoticeList { w.Write([]byte(`
` + item + `
`)) } } w.Write([]byte(`
`)) if len(tmpl_forums_vars.ItemList) != 0 { for _, item := range tmpl_forums_vars.ItemList { w.Write([]byte(` `)) } } else { w.Write([]byte(`
You don't have access to any forums.
`)) } w.Write([]byte(`
`)) }