package main
import "io"
import "strconv"
func init() {
ctemplates["forums"] = template_forums
}
func template_forums(tmpl_forums_vars Page, w io.Writer) {
w.Write([]byte(`
` + tmpl_forums_vars.Title + `
`))
if tmpl_forums_vars.CurrentUser.Loggedin {
w.Write([]byte(`
`))
if tmpl_forums_vars.CurrentUser.Is_Super_Mod {
w.Write([]byte(``))
}
w.Write([]byte(`
`))
} else {
w.Write([]byte(`
`))
}
w.Write([]byte(`
`))
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(`
`))
}
}
w.Write([]byte(`
`))
}